diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2022-07-18 12:48:36 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2022-07-18 12:48:36 +0000 |
commit | b513f5f9ed7d0c801ab845ef8800bf407377499c (patch) | |
tree | a3d74830cb8ae0048fe92deddfde2206d3138ca3 /sys/arch | |
parent | fe811370a30a8f23095ff3b5f60b969680aeece4 (diff) |
Compile octeon kernels with -march=mips64r2
Even though -march=octeon seems to work, avoid it for now. It is
not entirely certain that the compiler will not use cnMIPS special
registers accidentally in normal kernel code.
Discussed with and OK miod@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/octeon/conf/Makefile.octeon | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/octeon/conf/Makefile.octeon b/sys/arch/octeon/conf/Makefile.octeon index 18833f63adb..2af14224682 100644 --- a/sys/arch/octeon/conf/Makefile.octeon +++ b/sys/arch/octeon/conf/Makefile.octeon @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.octeon,v 1.60 2021/12/17 14:59:22 patrick Exp $ +# $OpenBSD: Makefile.octeon,v 1.61 2022/07/18 12:48:35 visa Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -34,7 +34,7 @@ CWARNFLAGS= -Werror -Wall -Wimplicit-function-declaration \ -Wno-pointer-sign \ -Wframe-larger-than=2047 -CMACHFLAGS= -mno-abicalls ${ABI} -msoft-float -G 0 +CMACHFLAGS= -march=mips64r2 -mno-abicalls ${ABI} -msoft-float -G 0 CMACHFLAGS+= -ffreestanding ${NOPIE_FLAGS} SORTR= sort -R .if ${IDENT:M-DNO_PROPOLICE} |