Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/arch



> Module Name:	src
> Committed By:	thorpej
> Date:		Fri Nov  7 14:35:21 UTC 2025
> 
> Modified Files:
> 	src/sys/arch/cesfic/cesfic: locore.s pmap_bootstrap.c
> 	src/sys/arch/hp300/hp300: locore.s pmap_bootstrap.c
> 	src/sys/arch/luna68k/luna68k: locore.s pmap_bootstrap.c
> 	src/sys/arch/mac68k/mac68k: pmap_bootstrap.c
> 	src/sys/arch/mvme68k/mvme68k: locore.s pmap_bootstrap.c
> 	src/sys/arch/news68k/news68k: locore.s pmap_bootstrap.c
> 	src/sys/arch/next68k/next68k: locore.s pmap_bootstrap.c
> 	src/sys/arch/virt68k/virt68k: locore.s pmap_bootstrap.c
> 	src/sys/arch/x68k/x68k: locore.s pmap_bootstrap.c
> 
> Log Message:
> Let pmap_bootstrap() round the "nextpa" argument to a page boundary.
 :
> cvs rdiff -u -r1.188 -r1.189 src/sys/arch/hp300/hp300/locore.s

---
@@ -391,14 +391,11 @@
 /* configure kernel and lwp0 VA space so we can get going */
 #if NKSYMS || defined(DDB) || defined(MODULAR)
 	RELOC(esym,%a0)			| end of static kernel test/data/syms
-	movl	%a0@,%d5
+	movl	%a0@,%a4
 	jne	Lstart3
 #endif
-	movl	#_C_LABEL(end),%d5	| end of static kernel text/data
+	movl	#_C_LABEL(end),%a4	| end of static kernel text/data
 Lstart3:
-	addl	#PAGE_SIZE-1,%d5
-	andl	#PG_FRAME,%d5		| round to a page
-	movl	%d5,%a4
 	addl	%a5,%a4			| convert to PA
 	pea	%a5@			| firstpa
 	pea	%a4@			| nextpa
---

The previous `movl %a0@,%d5` did update CCR (N/Z/V/C) per %d5
but updated  `movl %a0@,%a4` (i.e. MOVEA) doesn't, so explicit
`tstl %a4` tests are necessary before `jne Lstart3` contionals?

Thanks,
---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index