kernel: riscv64 patches

Change-Id: I8ebcbaa395cbccb50af08fd2f1b049b5cbb949c7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3883
Reviewed-by: Fredrik Holmqvist <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: X512 <[email protected]>
This commit is contained in:
X512
2021-06-07 07:14:23 +00:00
committed by Adrien Destugues
parent b126a077f8
commit d407b17b18
8 changed files with 62 additions and 80 deletions
+3 -2
View File
@@ -422,8 +422,9 @@ rule KernelArchitectureSetup architecture
case riscv64 :
# Kernel lives within any single 2 GiB address space.
# Default is medlow (-2GiB / +2GiB)
HAIKU_KERNEL_CCFLAGS += -mcmodel=medany ;
HAIKU_KERNEL_C++FLAGS += -mcmodel=medany ;
HAIKU_KERNEL_CCFLAGS += -mcmodel=medany -fpic ;
HAIKU_KERNEL_C++FLAGS += -mcmodel=medany -fpic ;
HAIKU_KERNEL_PIC_LINKFLAGS = -shared ;
case sparc :
# The medlow code model is enough (64-bit addresses, programs must