svn commit: r190602 - head/sys/arm/arm

Olivier Houchard cognet at FreeBSD.org
Tue Mar 31 16:06:20 PDT 2009


Author: cognet
Date: Tue Mar 31 23:06:20 2009
New Revision: 190602
URL: http://svn.freebsd.org/changeset/base/190602

Log:
  Use Oxf0000000 instead of 0xff000000 to guess the physical address, relative
  to the virtual one. I may had a reason at some point to use the later, but
  can't remember which, and it can leads to issues.
  
  Reported by:	Guillaume Ballet <gballet gmail com>

Modified:
  head/sys/arm/arm/locore.S

Modified: head/sys/arm/arm/locore.S
==============================================================================
--- head/sys/arm/arm/locore.S	Tue Mar 31 23:02:51 2009	(r190601)
+++ head/sys/arm/arm/locore.S	Tue Mar 31 23:06:20 2009	(r190602)
@@ -110,7 +110,7 @@ from_ram:
 	nop
 #endif
 	adr	r7, Lunmapped
-	bic     r7, r7, #0xff000000
+	bic     r7, r7, #0xf0000000
 	orr     r7, r7, #PHYSADDR
 
 
@@ -144,7 +144,7 @@ Lunmapped:
 	ldmia	r4!, {r1,r2,r3}   /* # of sections, VA, PA|attr */
 	cmp	r1, #0
 	adrne	r5, 2b
-	bicne	r5, r5, #0xff000000
+	bicne	r5, r5, #0xf0000000
 	orrne	r5, r5, #PHYSADDR
 	movne	pc, r5
 


More information about the svn-src-all mailing list