summaryrefslogtreecommitdiff
path: root/sys/arch/loongson/stand
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2020-11-13 16:42:51 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2020-11-13 16:42:51 +0000
commit76eae12a32b645bc06771cfd2a50fc858b953950 (patch)
tree3d236869de08638a3f590bc29ad108c0a6b089b9 /sys/arch/loongson/stand
parent03864f857162e1b3515e7d0966929c49ccc13586 (diff)
Use BTB bug workaround also with assembly files.
This might fix some boot-time hangs.
Diffstat (limited to 'sys/arch/loongson/stand')
-rw-r--r--sys/arch/loongson/stand/Makefile.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/loongson/stand/Makefile.inc b/sys/arch/loongson/stand/Makefile.inc
index a8a9237859d..02d1c4841ad 100644
--- a/sys/arch/loongson/stand/Makefile.inc
+++ b/sys/arch/loongson/stand/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.5 2013/06/02 19:52:36 jasper Exp $
+# $OpenBSD: Makefile.inc,v 1.6 2020/11/13 16:42:50 visa Exp $
BINDIR= /usr/mdec
@@ -18,6 +18,7 @@ CFLAGS+= -fno-builtin-strncpy
CFLAGS+= -fno-builtin-strncmp
CFLAGS+= -fno-builtin-exit
CFLAGS+= -Wa,-mfix-loongson2f-btb
+AFLAGS+= -Wa,-mfix-loongson2f-btb
SAABI= -mips3 -mno-abicalls -G 0 -fno-pic -fno-common
AS?= as
LD?= ld