Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nathanw_sa]: src/sys/arch/i386/i386 Have cpu_switch() return a flag indi...
details: https://anonhg.NetBSD.org/src/rev/67805d1a115f
branches: nathanw_sa
changeset: 504605:67805d1a115f
user: nathanw <nathanw%NetBSD.org@localhost>
date: Fri Apr 06 21:00:40 2001 +0000
description:
Have cpu_switch() return a flag indicating whether or not it switched
to a different process.
diffstat:
sys/arch/i386/i386/locore.s | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 30bf40fe6d5c -r 67805d1a115f sys/arch/i386/i386/locore.s
--- a/sys/arch/i386/i386/locore.s Fri Apr 06 15:05:56 2001 +0000
+++ b/sys/arch/i386/i386/locore.s Fri Apr 06 21:00:40 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.233.2.1 2001/03/05 22:49:12 nathanw Exp $ */
+/* $NetBSD: locore.s,v 1.233.2.2 2001/04/06 21:00:40 nathanw Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -1866,6 +1866,7 @@
sti
/* Skip context switch if same process. */
+ movl $1, %eax
cmpl %edi,%esi
je switch_return
@@ -1964,7 +1965,7 @@
/* Interrupts are okay again. */
sti
-
+ xor %eax,%eax
switch_return:
/*
* Restore old cpl from stack. Note that this is always an increase,
@@ -1972,7 +1973,6 @@
*/
popl _C_LABEL(cpl)
- movl %edi,%eax # return (p);
popl %edi
popl %esi
popl %ebx
Home |
Main Index |
Thread Index |
Old Index