summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-06-04 11:43:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-06-04 11:54:03 +0200
commit596c8450727ff2c9e2a8053e83280682d813c82f (patch)
treeb1623de1d69f75765cffd8db50083a6faa64c8b4 /Documentation
parent9e6ee5e79516f5af5366bd95fab801a692728373 (diff)
downloadbarebox-596c8450727ff2c9e2a8053e83280682d813c82f.tar.gz
barebox-596c8450727ff2c9e2a8053e83280682d813c82f.tar.xz
[memory layout]: streamline memory layout
Memory layout can now be specified via kconfig options. Two possibilities exist: default layout means the layout is stack / malloc heap / U-Boot. The user can also specify fixed addresses for each TEXT_BASE / stack / malloc heap.
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/porting.txt13
1 files changed, 4 insertions, 9 deletions
diff --git a/Documentation/porting.txt b/Documentation/porting.txt
index 7cc3bc298a..5b5407031e 100644
--- a/Documentation/porting.txt
+++ b/Documentation/porting.txt
@@ -92,15 +92,10 @@ console_initcall(scb9328_console_init);
this is SoC dependend. See Documentation/timekeeping.txt for further
information.
-- Adjust start.S. These files share a lot of common code, so they should be
- reworked in general. On Arm you have to fix CFG_MALLOC_LEN. Most start.S
- under cpu/arm* do a "sub r0, r0, #CFG_MALLOC_LEN". If you increase
- the malloc space the value CFG_MALLOC_LEN does not fit into the instruction.
- See cpu/arm920t/start.S how it is done.
- On PowerpC there is at least the Problem that the relocation offset is
- defined at compile time. It is easily possible to determine the address
- U-Boot is currently starting from at runtime and thus allowing it U-Boot
- to be started at any address. Look at the relocation code and replace
+- Adjust start.S. On PowerpC there is at least the Problem that the relocation
+ offset is defined at compile time. It is easily possible to determine the
+ address U-Boot is currently starting from at runtime and thus allowing it
+ U-Boot to be started at any address. Look at the relocation code and replace
TEXT_BASE with the following calculation of the runtime address:
bl calc_source /* Calculate Source Address */