mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
code now unconditionally pushes an empty pointer to the stack which is a placeholder for the pointer to global variable storage. That pointer and the global variable storage are initialized in global_vars_init(). Creating global variables is now a piece of cake. You don't even have to touch any asm code, just add them to struct global_vars. Build tested on all targets, boot tested on Qemu. NOTES: - The code is not yet MP safe, but that's due to v3 not being MP safe in general (and the comments contradict the code regarding MP features). - K8 code now works by accident. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Segher Boessenkool <segher@kernel.crashing.org> git-svn-id: svn://coreboot.org/repository/coreboot-v3@785 f3766cd6-281f-0410-b1cd-43a5c92072e9 |
||
---|---|---|
.. | ||
arch/x86 | ||
device | ||
console.h | ||
elf.h | ||
elf_boot.h | ||
ip_checksum.h | ||
isa-dma.h | ||
keyboard.h | ||
lar.h | ||
lib.h | ||
mc146818rtc.h | ||
post_code.h | ||
shared.h | ||
spd.h | ||
spinlock.h | ||
string.h | ||
tables.h | ||
uart8250.h |