From 8ba46ea41549d714d76d062d9ba1148d80dafe24 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Tue, 31 Mar 2009 23:06:20 +0000 Subject: [PATCH] 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 --- sys/arm/arm/locore.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arm/arm/locore.S b/sys/arm/arm/locore.S index b465edc1994..e56a91c087c 100644 --- a/sys/arm/arm/locore.S +++ b/sys/arm/arm/locore.S @@ -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