j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Mon May 12 17:43:52 2014 New Revision: 1295 URL: http://tracker.coreboot.org/trac/openbios/changeset/1295
Log: SPARC64: Remove zero page mapping from MMU to enable detection of NULL pointer dereferences
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
Modified: trunk/openbios-devel/arch/sparc64/ofmem_sparc64.c
Modified: trunk/openbios-devel/arch/sparc64/ofmem_sparc64.c ============================================================================== --- trunk/openbios-devel/arch/sparc64/ofmem_sparc64.c Mon May 12 17:43:50 2014 (r1294) +++ trunk/openbios-devel/arch/sparc64/ofmem_sparc64.c Mon May 12 17:43:52 2014 (r1295) @@ -366,7 +366,7 @@ 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");