aboutsummaryrefslogtreecommitdiffstats
path: root/roms/ipxe/src/arch/x86_64/Makefile.pcbios
diff options
context:
space:
mode:
Diffstat (limited to 'roms/ipxe/src/arch/x86_64/Makefile.pcbios')
-rw-r--r--roms/ipxe/src/arch/x86_64/Makefile.pcbios15
1 files changed, 15 insertions, 0 deletions
diff --git a/roms/ipxe/src/arch/x86_64/Makefile.pcbios b/roms/ipxe/src/arch/x86_64/Makefile.pcbios
new file mode 100644
index 000000000..ba4c8d8dc
--- /dev/null
+++ b/roms/ipxe/src/arch/x86_64/Makefile.pcbios
@@ -0,0 +1,15 @@
+# -*- makefile -*- : Force emacs to use Makefile mode
+
+# Place .textdata in negative 2GB of address space
+#
+CFLAGS += -mcmodel=kernel
+LDFLAGS += --section-start=.textdata=0xffffffffeb000000
+
+# Assembly code does not respect a red zone.
+#
+CFLAGS += -mno-red-zone
+
+# Include generic BIOS Makefile
+#
+MAKEDEPS += arch/x86/Makefile.pcbios
+include arch/x86/Makefile.pcbios