summaryrefslogtreecommitdiffstats
path: root/src/arch/riscv64/Makefile.sbi
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/riscv64/Makefile.sbi')
-rw-r--r--src/arch/riscv64/Makefile.sbi14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/arch/riscv64/Makefile.sbi b/src/arch/riscv64/Makefile.sbi
new file mode 100644
index 000000000..0f7e1c373
--- /dev/null
+++ b/src/arch/riscv64/Makefile.sbi
@@ -0,0 +1,14 @@
+# -*- makefile -*- : Force emacs to use Makefile mode
+
+# Set base virtual address to 0xffffffffeb000000
+#
+# This is aligned to a 2MB boundary and so allows 2MB megapages to be
+# used to map the iPXE binary. The address pattern is also easily
+# recognisable if leaked to unexpected contexts.
+#
+LDFLAGS += --section-start=.prefix=0xffffffffeb000000
+
+# Include generic SBI Makefile
+#
+MAKEDEPS += arch/riscv/Makefile.sbi
+include arch/riscv/Makefile.sbi