mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] resources
@ 2011-12-05  8:55 Sascha Hauer
  2011-12-05  8:55 ` [PATCH 1/5] fix malloc space sizes Sascha Hauer
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Sascha Hauer @ 2011-12-05  8:55 UTC (permalink / raw)
  To: barebox

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

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-12-05  8:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-05  8:55 [PATCH] resources Sascha Hauer
2011-12-05  8:55 ` [PATCH 1/5] fix malloc space sizes Sascha Hauer
2011-12-05  8:55 ` [PATCH 2/5] add resource management functions Sascha Hauer
2011-12-05  8:55 ` [PATCH 3/5] add iomem command to show iomem usage Sascha Hauer
2011-12-05  8:56 ` [PATCH 4/5] register sdram as resources Sascha Hauer
2011-12-05  8:56 ` [PATCH 5/5] implement resource management for platform devices Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox