diff options
author | Aaron Durbin <adurbin@chromium.org> | 2013-02-08 17:05:36 -0600 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-03-21 17:53:20 +0100 |
commit | e8c866ad45d80de768c9422474449e171d133575 (patch) | |
tree | 7e302c3f0378fe87fa5c967d23f3059c0347ae4f /src/include/version.h | |
parent | 426ce4192bd127ceaab52d94468b66d718608572 (diff) |
rmodule: add ability to calculate module placement
There is a need to calculate the proper placement for an rmodule
in memory. e.g. loading a compressed rmodule from flash into ram
can be an issue. Determining the placement is hard since the header
is not readable until it is decompressed so choosing the wrong location
may require a memmove() after decompression. This patch provides
a function to perform this calculation by finding region below a given
address while making an assumption on the size of the rmodule header..
Change-Id: I2703438f58ae847ed6e80b58063ff820fbcfcbc0
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/2788
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/include/version.h')
0 files changed, 0 insertions, 0 deletions