[commit] r1243 - trunk/openbios-devel/include/arch/sparc64
Author: mcayland Date: Mon Dec 16 19:06:22 2013 New Revision: 1243 URL: http://tracker.coreboot.org/trac/openbios/changeset/1243 Log: SPARC64: increase PAGE_SHIFT to 13 (8K page size) Some bootloaders use the IEEE1275 memory words to allocate blocks of memory which are less than PAGE_SIZE. With an incorect page size, OFMEM would allocate entries that were only aligned to 4K. This caused a problem whereby when memory was reallocated by OpenBIOS, the resulting TLB flush would be at the wrong address, silently fail, and hence cause a crash when the reallocated virtual address was first accessed. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Modified: trunk/openbios-devel/include/arch/sparc64/types.h Modified: trunk/openbios-devel/include/arch/sparc64/types.h ============================================================================== --- trunk/openbios-devel/include/arch/sparc64/types.h Mon Dec 16 19:06:19 2013 (r1242) +++ trunk/openbios-devel/include/arch/sparc64/types.h Mon Dec 16 19:06:22 2013 (r1243) @@ -85,7 +85,7 @@ #define BITS 64 -#define PAGE_SHIFT 12 +#define PAGE_SHIFT 13 /* size named types */
participants (1)
-
repository service