diff options
author | kientzle <kientzle@FreeBSD.org> | 2012-05-20 18:07:35 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2012-05-20 18:07:35 +0000 |
commit | e6804cafc056a9e29431f787e33ad842fe2fee42 (patch) | |
tree | 090ff11719f406625152bd494c0ce39ab437a86a /contrib/diff/src | |
parent | cae1f5b99464a45f06cd5a6ba5b1b606de6f7a15 (diff) | |
download | FreeBSD-src-e6804cafc056a9e29431f787e33ad842fe2fee42.zip FreeBSD-src-e6804cafc056a9e29431f787e33ad842fe2fee42.tar.gz |
Determine kernel load address dynamically from u-boot memory map.
The generic ELF loading code maps the kernel into low memory
by subtracting KERN_BASE. So the copyin/copyout/readin functions
are always called with low addresses. This code finds the largest
DRAM block from the U-Boot memory map and adds that base to
the addresses.
In particular, this fixes ubldr on AM3358, which has DRAM
mapped to 0x80000000 at power-on.
Diffstat (limited to 'contrib/diff/src')
0 files changed, 0 insertions, 0 deletions