[PATCH] resources

Sascha Hauer s.hauer at pengutronix.de
Mon Dec 5 03:55:56 EST 2011


We do not track sdram usage at all which means that currently we
can't see whether regions for the binary, stack, malloc space overlap
ot where we can safely load images to. The following implements iomem
resources support and registers the known regions accordingly. bootm
currently does not use this, it will be done in a later patch.

Sascha

Sascha Hauer (5):
      fix malloc space sizes
      add resource management functions
      add iomem command to show iomem usage
      register sdram as resources
      implement resource management for platform devices

 arch/arm/lib/arm.c        |    2 +-
 arch/blackfin/lib/board.c |    2 +-
 arch/mips/lib/memory.c    |    2 +-
 arch/nios2/lib/board.c    |    2 +-
 arch/ppc/lib/board.c      |    2 +-
 arch/sandbox/os/common.c  |    2 +-
 arch/x86/lib/memory.c     |    4 +-
 commands/Kconfig          |    7 +++
 commands/Makefile         |    1 +
 commands/iomem.c          |   56 +++++++++++++++++++++
 common/Makefile           |    1 +
 common/memory.c           |   58 +++++++++++++++++++++
 common/resource.c         |  121 +++++++++++++++++++++++++++++++++++++++++++++
 drivers/base/driver.c     |   29 ++++++++++-
 include/driver.h          |    6 +--
 include/linux/ioport.h    |   14 +++++
 include/memory.h          |    5 ++
 17 files changed, 299 insertions(+), 15 deletions(-)
 create mode 100644 commands/iomem.c
 create mode 100644 common/resource.c



More information about the barebox mailing list