ping.
-----Original Message----- From: Ni, Ray ray.ni@intel.com Sent: Saturday, September 18, 2021 12:43 AM To: coreboot@coreboot.org Subject: [coreboot] Question on loading SELF payload
Hi, I am studying how coreboot loads the SELF format payload. From load_payload_segments() in src/lib/self_boot.c, the SELF payload is not relocated to a range of free memory. Which means the SELF payload should pick proper "segment.load_addr" for each segment, otherwise the payload may corrupt the critical memory region. coreboot may not run in background when control is transferred to payload, but before that,
- the coreboot code that does the payload loading
- stack
may overlap with segment.load_addr of payload.
Is my understanding correct?
If yes, is there a recommended memory map (where is stack, where is coreboot ramstage, where is payload)?
Thanks, Ray
coreboot mailing list -- coreboot@coreboot.org To unsubscribe send an email to coreboot-leave@coreboot.org