Module Name: src
Committed By: matt
Date: Thu Jun 4 02:28:06 UTC 2015
Modified Files:
src/sys/arch/mips/mips: lock_stubs_llsc.S
Log Message:
Use syncw on OCTEON
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/mips/mips/lock_stubs_llsc.S
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/mips/lock_stubs_llsc.S
diff -u src/sys/arch/mips/mips/lock_stubs_llsc.S:1.2 src/sys/arch/mips/mips/lock_stubs_llsc.S:1.3
--- src/sys/arch/mips/mips/lock_stubs_llsc.S:1.2 Sun Jul 10 23:21:59 2011
+++ src/sys/arch/mips/mips/lock_stubs_llsc.S Thu Jun 4 02:28:06 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: lock_stubs_llsc.S,v 1.2 2011/07/10 23:21:59 matt Exp $ */
+/* $NetBSD: lock_stubs_llsc.S,v 1.3 2015/06/04 02:28:06 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -45,8 +45,13 @@
#endif
#if defined(MULTIPROCESSOR)
+#if defined(__OCTEON__)
+#define SYNC syncw
+#define BDSYNC syncw
+#else
#define SYNC sync
#define BDSYNC sync
+#endif
#else
#define SYNC /* nothing */
#define BDSYNC nop