Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc lock xpmsg_lock around the safefpu ipi.
details: https://anonhg.NetBSD.org/src/rev/c7cb5afd5fd7
branches: trunk
changeset: 512216:c7cb5afd5fd7
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Jul 07 20:12:54 2001 +0000
description:
lock xpmsg_lock around the safefpu ipi.
diffstat:
sys/arch/sparc/sparc/trap.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r e266489cd5d7 -r c7cb5afd5fd7 sys/arch/sparc/sparc/trap.c
--- a/sys/arch/sparc/sparc/trap.c Sat Jul 07 20:09:15 2001 +0000
+++ b/sys/arch/sparc/sparc/trap.c Sat Jul 07 20:12:54 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.105 2001/06/08 09:40:32 mrg Exp $ */
+/* $NetBSD: trap.c,v 1.106 2001/07/07 20:12:54 mrg Exp $ */
/*
* Copyright (c) 1996
@@ -452,10 +452,12 @@
if (cpi != NULL) {
if (cpi->mid == cpuinfo.mid)
panic("FPU on module %d\n", mid);
+ LOCK_XPMSG();
simple_lock(&cpi->fplock);
simple_lock(&cpi->msg.lock);
cpi->msg.tag = XPMSG_SAVEFPU;
raise_ipi_wait_and_unlock(cpi);
+ UNLOCK_XPMSG();
}
loadfpstate(fs);
cpuinfo.fpproc = p; /* now we do have it */
Home |
Main Index |
Thread Index |
Old Index