Build the arm64 loader with -ffixed-x18
This stops the compiler from using the x18 register. Some UEFI implementations assume this will be preserved when calling the Boot Services. MFC after: 2 weeks Sponsored by: Innovate UK
This commit is contained in:
parent
295e8e956f
commit
a2e2311a40
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360247
@ -119,7 +119,7 @@ SSP_CFLAGS=
|
|||||||
# currently has no /boot/loader, but may soon.
|
# currently has no /boot/loader, but may soon.
|
||||||
CFLAGS+= -ffreestanding ${CFLAGS_NO_SIMD}
|
CFLAGS+= -ffreestanding ${CFLAGS_NO_SIMD}
|
||||||
.if ${MACHINE_CPUARCH} == "aarch64"
|
.if ${MACHINE_CPUARCH} == "aarch64"
|
||||||
CFLAGS+= -mgeneral-regs-only -fPIC
|
CFLAGS+= -mgeneral-regs-only -ffixed-x18 -fPIC
|
||||||
.elif ${MACHINE_CPUARCH} == "riscv"
|
.elif ${MACHINE_CPUARCH} == "riscv"
|
||||||
CFLAGS+= -march=rv64imac -mabi=lp64
|
CFLAGS+= -march=rv64imac -mabi=lp64
|
||||||
.else
|
.else
|
||||||
|
Loading…
Reference in New Issue
Block a user