Module Name:    src
Committed By:   martin
Date:           Tue Aug  1 13:18:21 UTC 2023

Modified Files:
        src/sys/arch/mips/include [netbsd-8]: asm.h

Log Message:
Apply patch, requested by riastradh in ticket #1859:

        sys/arch/mips/include/asm.h     (apply patch)

Additional build fix for mips1 (and mips2?)
(patch taken from [pullup-9 #1676])


To generate a diff of this commit:
cvs rdiff -u -r1.54.6.1 -r1.54.6.2 src/sys/arch/mips/include/asm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/include/asm.h
diff -u src/sys/arch/mips/include/asm.h:1.54.6.1 src/sys/arch/mips/include/asm.h:1.54.6.2
--- src/sys/arch/mips/include/asm.h:1.54.6.1	Mon Jul 31 13:56:14 2023
+++ src/sys/arch/mips/include/asm.h	Tue Aug  1 13:18:21 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: asm.h,v 1.54.6.1 2023/07/31 13:56:14 martin Exp $	*/
+/*	$NetBSD: asm.h,v 1.54.6.2 2023/08/01 13:18:21 martin Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -511,8 +511,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

Reply via email to