summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2011-01-06 00:22:10 +0000
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-06 03:25:10 +0100
commitf6897b395f6340132ab47a46fe587e8e6ced647a (patch)
tree644a8ec3381c46646c69c2fbf4894b5be5933709 /mk
parentc4eef4c58ae81bc4b6b2a24842c6a45b79b0665f (diff)
Add experimental code to self-relocate vmlinuz on e.g. brcm
This is needed for the following reason: our memory layout looks like this: | |vmlinux | |CFE| * | | | |vmlinuz | | ^ Since CFE can only load to the spot marked with ‘^’ anyway, we load vmlinub.elf there which is basically a big rodata blob containing vmlinuz and minimal code moving it to the location pointed with vmlinuz above. Another solution would be to use CFE’s “boot -raw” to place it on the location marked with ‘*’ above (but the CFE location and size are dynamic, and since it insists on loading to 0x80001000 anyway, this point is virtually moot). Even worse, we probably cannot overwrite CFE space even late, so we move vmlinuz like this: | |vmlinux | |CFE| |vmlinuz | | This way, both “Total memory used by CFE” and “Boot area (physical)” (the latter as mapped into KSEG0) are retained. Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'mk')
0 files changed, 0 insertions, 0 deletions