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 use the idle lwp's uarea for stack, not...
details: https://anonhg.NetBSD.org/src/rev/65965bd794ef
branches: trunk
changeset: 750518:65965bd794ef
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Jan 04 04:06:57 2010 +0000
description:
use the idle lwp's uarea for stack, not the interrupt stack. this works
now, and it fixes up idle vs interrupt time measurement for cpu>0.
diffstat:
sys/arch/sparc/sparc/locore.s | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
diffs (33 lines):
diff -r 12f7576daf3f -r 65965bd794ef sys/arch/sparc/sparc/locore.s
--- a/sys/arch/sparc/sparc/locore.s Mon Jan 04 03:54:42 2010 +0000
+++ b/sys/arch/sparc/sparc/locore.s Mon Jan 04 04:06:57 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.253 2010/01/03 12:44:34 mrg Exp $ */
+/* $NetBSD: locore.s,v 1.254 2010/01/04 04:06:57 mrg Exp $ */
/*
* Copyright (c) 1996 Paul Kranenburg
@@ -4568,15 +4568,6 @@
wr %g6, 0, %tbr
nop; nop; nop ! paranoia
-#if 1
- set USRSTACK - CCFSZ, %fp ! as if called from user code
-
- /* Set up a stack. We use the bottom half of the interrupt stack */
- sethi %hi(_EINTSTACKP), %o0
- ld [%o0 + %lo(_EINTSTACKP)], %o0
- set (INT_STACK_SIZE/2) + CCFSZ + 80, %sp
- sub %o0, %sp, %sp
-#else
/*
* Use this CPUs idlelwp's stack
*/
@@ -4586,7 +4577,6 @@
add %o0, %sp, %sp
add 80, %sp, %fp
-#endif
/* Enable traps */
rd %psr, %l0
Home |
Main Index |
Thread Index |
Old Index