[OpenBIOS] [PATCH 4/7] SPARC64: Remove zero page mapping from MMU to enable detection of NULL pointer dereferences
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Sun May 4 19:49:52 CEST 2014
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
openbios-devel/arch/sparc64/ofmem_sparc64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/openbios-devel/arch/sparc64/ofmem_sparc64.c b/openbios-devel/arch/sparc64/ofmem_sparc64.c
index d0a7d88..005d774 100644
--- a/openbios-devel/arch/sparc64/ofmem_sparc64.c
+++ b/openbios-devel/arch/sparc64/ofmem_sparc64.c
@@ -366,7 +366,7 @@ void ofmem_init( void )
ofmem_walk_boot_map(remap_page_range);
/* Map the memory */
- ofmem_map_page_range(0, 0, qemu_mem_size, 0x36);
+ ofmem_map_page_range(PAGE_SIZE, PAGE_SIZE, qemu_mem_size, 0x36);
if (!(retained->magic == RETAIN_MAGIC)) {
OFMEM_TRACE("ofmem_init: no retained magic found, creating\n");
--
1.7.10.4
More information about the OpenBIOS
mailing list