]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[build] Constrain PHYS_CODE() and REAL_CODE() to use i386 registers
authorMichael Brown <mcb30@ipxe.org>
Wed, 7 May 2025 21:57:40 +0000 (22:57 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 7 May 2025 22:03:02 +0000 (23:03 +0100)
commite8a6c2657163af1255d1b1ccff3d19c45b0a6182
treec0c67a120f9c7f920e442315a35cbbab6505b34c
parent12dee2dab2ea6bc619603c2036e6512889813c4c
[build] Constrain PHYS_CODE() and REAL_CODE() to use i386 registers

Inline assembly using PHYS_CODE() or REAL_CODE() must use the "R"
constraint rather than the "r" constraint to ensure that the compiler
chooses registers that will be valid for the 32-bit or 16-bit assembly
code fragment.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/image/com32.c
src/arch/x86/image/comboot.c
src/arch/x86/interface/pcbios/bios_mp.c
src/arch/x86/interface/syslinux/comboot_call.c