memlayout: Add symbols for stage bounds

Hardware / Coreboot - Julius Werner [chromium.org] - 22 February 2016 14:38 UTC

Stages are inconsistent with other memlayout regions in that they don't have _ and _e symbols defined. We have _program and _eprogram, but that always only refers to the current stage and _eprogram marks the actual end of the executable's memory footprint, not the end of the area allocated in memlayout. Both of these are sometimes useful to know, so let's add another set of symbols that allow the stage areas to be treated more similarly to other regions.

Change-Id: I9e8cff46bb15b51c71a87bd11affb37610aa7df9

862c385 memlayout: Add symbols for stage bounds
src/include/memlayout.h | 24 ++++++++++++------------
src/include/symbols.h | 18 ++++++++++++++++++
2 files changed, 30 insertions(+), 12 deletions(-)

Upstream: review.coreboot.org


  • Share