[OpenBIOS] [PATCH 0/7] Assorted OpenBIOS memory fixes

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Fri Apr 12 14:57:40 CEST 2013


This patchset fixes various issues found working with the removal of the zero
page mapping for SPARC32/PPC in order to catch NULL pointer dereferences.

With all patches applied, I see no regressions in any of my SPARC32 or PPC test
images.

Mark Cave-Ayland (7):
  SPARC32: Add debugging output for calls to the romvec obp_memalloc()
    and obp_dumb_memalloc() functions.
  OFMEM: Fix selection of reusable memory areas from the internal
    malloc() freelist.
  Remove /chosen "memory" property from the default device tree.
  OFMEM: Fix bad alignments passed into the OFMEM claim words
  SPARC32: Remove manual fix for bad alignments passed into the romvec
    malloc() functions
  SPARC32: Remove zero page mapping from MMU to enable detection of
    NULL pointer dereferences
  PPC: Remove zero page mapping from MMU to enable detection of NULL
    pointer dereferences

 openbios-devel/arch/ppc/qemu/ofmem.c        |   11 ++++++---
 openbios-devel/arch/sparc32/init.fs         |    2 +-
 openbios-devel/arch/sparc32/lib.c           |   34 ++++++++++-----------------
 openbios-devel/arch/sparc32/ofmem_sparc32.c |    3 +++
 openbios-devel/forth/device/tree.fs         |    1 -
 openbios-devel/libopenbios/ofmem_common.c   |   22 +++++++++++++----
 6 files changed, 42 insertions(+), 31 deletions(-)

-- 
1.7.10.4




More information about the OpenBIOS mailing list