Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/include use cli/sti instead of splhigh/splx fo...
details: https://anonhg.NetBSD.org/src/rev/3927d29db06a
branches: trunk
changeset: 514120:3927d29db06a
user: chs <chs%NetBSD.org@localhost>
date: Thu Aug 23 06:17:00 2001 +0000
description:
use cli/sti instead of splhigh/splx for MCOUNT_ENTER/MCOUNT_EXIT.
this makes clearer how much time mcount() is really taking.
diffstat:
sys/arch/i386/include/profile.h | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diffs (22 lines):
diff -r 268341a7f089 -r 3927d29db06a sys/arch/i386/include/profile.h
--- a/sys/arch/i386/include/profile.h Thu Aug 23 04:47:36 2001 +0000
+++ b/sys/arch/i386/include/profile.h Thu Aug 23 06:17:00 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: profile.h,v 1.14 2000/01/22 22:46:56 mycroft Exp $ */
+/* $NetBSD: profile.h,v 1.15 2001/08/23 06:17:00 chs Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -67,10 +67,6 @@
}
#ifdef _KERNEL
-/*
- * Note that we assume splhigh() and splx() cannot call mcount()
- * recursively.
- */
-#define MCOUNT_ENTER s = splhigh()
-#define MCOUNT_EXIT splx(s)
+#define MCOUNT_ENTER (void)&s; __asm__("cli");
+#define MCOUNT_EXIT __asm__("sti");
#endif /* _KERNEL */
Home |
Main Index |
Thread Index |
Old Index