Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips This file is only ever used when MULTIPRO...
details: https://anonhg.NetBSD.org/src/rev/6da9f911b7ce
branches: trunk
changeset: 936936:6da9f911b7ce
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Aug 09 08:33:52 2020 +0000
description:
This file is only ever used when MULTIPROCESSOR so unifdef MULTIPROCESSOR
diffstat:
sys/arch/mips/mips/lock_stubs_llsc.S | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diffs (51 lines):
diff -r eb5da7f041ab -r 6da9f911b7ce sys/arch/mips/mips/lock_stubs_llsc.S
--- a/sys/arch/mips/mips/lock_stubs_llsc.S Sun Aug 09 08:13:09 2020 +0000
+++ b/sys/arch/mips/mips/lock_stubs_llsc.S Sun Aug 09 08:33:52 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lock_stubs_llsc.S,v 1.11 2020/08/06 10:00:21 skrll Exp $ */
+/* $NetBSD: lock_stubs_llsc.S,v 1.12 2020/08/09 08:33:52 skrll Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -31,20 +31,15 @@
#include "opt_cputype.h"
#include "opt_lockdebug.h"
-#include "opt_multiprocessor.h"
#include <sys/errno.h>
#include <machine/asm.h>
-RCSID("$NetBSD: lock_stubs_llsc.S,v 1.11 2020/08/06 10:00:21 skrll Exp $")
+RCSID("$NetBSD: lock_stubs_llsc.S,v 1.12 2020/08/09 08:33:52 skrll Exp $")
#include "assym.h"
-#if defined(DIAGNOSTIC) || defined(MULTIPROCESSOR)
-#define FULL
-#endif
-
/*
* Set ISA level for the assembler.
* XXX Clean up with a macro? Same code fragment is in mipsX_subr.S too.
@@ -259,7 +254,7 @@
12: bnez v0, 12b # loop forever if any are true
nop
#endif /* PARANOIA */
-#if defined(FULL)
+
LLSCSYNC
INT_LL t3, MTX_LOCK(t0)
3:
@@ -273,10 +268,6 @@
4:
j _C_LABEL(mutex_spin_retry)
move a0, t0
-#else
- j ra
- nop
-#endif /* FULL */
END(llsc_mutex_spin_enter)
/*
Home |
Main Index |
Thread Index |
Old Index