From ae8f7409184b650aed03a07c2397e5622880587e Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Tue, 1 Aug 2023 12:39:30 +0000 Subject: [PATCH] [pullup-9 #1676] Fix mips1 build. --- sys/arch/mips/include/asm.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/arch/mips/include/asm.h b/sys/arch/mips/include/asm.h index 4d1dce591e1c..601989874fc5 100644 --- a/sys/arch/mips/include/asm.h +++ b/sys/arch/mips/include/asm.h @@ -512,8 +512,13 @@ _C_LABEL(x): #endif /* XXX pullup more mips barrier improvements here */ +#if defined(MULTIPROCESSOR) && (__mips >= 3 || !defined(__mips_o32)) #define SYNC_ACQ sync #define SYNC_REL sync +#else +#define SYNC_ACQ /* nothing */ +#define SYNC_REL /* nothing */ +#endif /* * Store-before-load barrier. Do not use this unless you know what