Module Name:    src
Committed By:   martin
Date:           Tue Aug  1 13:14:39 UTC 2023

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

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

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

Additional build fix for mips1 (and mips2?)


To generate a diff of this commit:
cvs rdiff -u -r1.55.4.1 -r1.55.4.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.55.4.1 src/sys/arch/mips/include/asm.h:1.55.4.2
--- src/sys/arch/mips/include/asm.h:1.55.4.1	Mon Jul 31 13:44:15 2023
+++ src/sys/arch/mips/include/asm.h	Tue Aug  1 13:14:39 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: asm.h,v 1.55.4.1 2023/07/31 13:44:15 martin Exp $	*/
+/*	$NetBSD: asm.h,v 1.55.4.2 2023/08/01 13:14:39 martin Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -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

Reply via email to