login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
13
Re: stack overflow on Sparc64
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Mikulas Patocka <mpatocka@...>
To: David Miller <davem@...>
Cc: <sparclinux@...>, <linux-kernel@...>
Subject:
Re: stack overflow on Sparc64
Date: Tuesday, August 12, 2008 - 8:53 pm
On Tue, 12 Aug 2008, David Miller wrote:
quoted text
> From: David Miller <davem@davemloft.net> > Date: Mon, 11 Aug 2008 23:30:13 -0700 (PDT) > > > The problem is that CONFIG_STACK_DEBUG doesn't understand > > the IRQ stacks at all. > > > > I'll see if I can tweak it to handle this. > > This patch, on top of my original IRQSTACKS patch for > sparc64, seems to get things working for me.
Thanks, the patch works. Mikulas
quoted text
> diff --git a/arch/sparc64/lib/mcount.S b/arch/sparc64/lib/mcount.S > index 9e4534b..24e6a3c 100644 > --- a/arch/sparc64/lib/mcount.S > +++ b/arch/sparc64/lib/mcount.S > @@ -45,11 +45,47 @@ _mcount: > sub %g3, STACK_BIAS, %g3 > cmp %sp, %g3 > bg,pt %xcc, 1f > - sethi %hi(panicstring), %g3 > + nop > +#ifdef CONFIG_IRQSTACKS > + lduh [%g6 + TI_CPU], %g1 > + sethi %hi(hardirq_stack), %g3 > + or %g3, %lo(hardirq_stack), %g3 > + sllx %g1, 3, %g1 > + ldx [%g3 + %g1], %g7 > + sub %g7, STACK_BIAS, %g7 > + cmp %sp, %g7 > + bleu,pt %xcc, 2f > + sethi %hi(THREAD_SIZE), %g3 > + add %g7, %g3, %g7 > + cmp %sp, %g7 > + blu,pn %xcc, 1f > +2: sethi %hi(softirq_stack), %g3 > + or %g3, %lo(softirq_stack), %g3 > + ldx [%g3 + %g1], %g7 > + cmp %sp, %g7 > + bleu,pt %xcc, 2f > + sethi %hi(THREAD_SIZE), %g3 > + add %g7, %g3, %g7 > + cmp %sp, %g7 > + blu,pn %xcc, 1f > + nop > +#endif > + /* If we are already on panic stack, don't hop onto it > + * again, we are already trying to output the stack overflow > + * message. > + */ > sethi %hi(ovstack), %g7 ! cant move to panic stack fast enough > or %g7, %lo(ovstack), %g7 > - add %g7, OVSTACKSIZE, %g7 > + add %g7, OVSTACKSIZE, %g3 > + sub %g3, STACK_BIAS - 192, %g3 > sub %g7, STACK_BIAS, %g7 > + cmp %sp, %g7 > + blu,pn %xcc, 2f > + cmp %sp, %g3 > + bleu,pn %xcc, 1f > + nop > +2: mov %g3, %sp > + sethi %hi(panicstring), %g3 > mov %g7, %sp > call prom_printf > or %g3, %lo(panicstring), %o0 >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
stack overflow on Sparc64
, Mikulas Patocka
, (Tue Jun 17, 8:47 pm)
Re: stack overflow on Sparc64
, David Miller
, (Wed Jun 18, 12:01 am)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Fri Jun 20, 11:47 am)
Re: stack overflow on Sparc64
, David Miller
, (Fri Jun 20, 1:26 pm)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Fri Jun 20, 5:14 pm)
Re: stack overflow on Sparc64
, David Miller
, (Fri Jun 20, 5:20 pm)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Fri Jun 20, 5:25 pm)
Re: stack overflow on Sparc64
, David Miller
, (Fri Jun 20, 5:44 pm)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Fri Jun 20, 6:33 pm)
Re: stack overflow on Sparc64
, David Miller
, (Fri Jun 20, 5:47 pm)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Fri Jun 20, 6:22 pm)
Re: stack overflow on Sparc64
, David Miller
, (Fri Jun 20, 6:28 pm)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Fri Jun 20, 6:36 pm)
Re: stack overflow on Sparc64
, David Miller
, (Fri Jun 20, 6:47 pm)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Fri Jun 20, 8:37 pm)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Fri Jun 20, 4:34 pm)
Re: stack overflow on Sparc64
, David Miller
, (Fri Jun 20, 4:37 pm)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Fri Jun 20, 5:26 pm)
Re: stack overflow on Sparc64
, David Miller
, (Fri Jun 20, 5:41 pm)
Re: stack overflow on Sparc64
, David Miller
, (Sat Jun 21, 12:51 am)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Sat Jun 21, 3:42 pm)
Re: stack overflow on Sparc64
, David Miller
, (Tue Aug 12, 2:30 am)
console handover badness [was: stack overflow on Sparc64]
, Mikulas Patocka
, (Tue Aug 12, 9:11 pm)
Re: console handover badness
, David Miller
, (Tue Aug 12, 9:40 pm)
Re: console handover badness
, Mikulas Patocka
, (Wed Aug 13, 8:46 am)
Re: console handover badness
, David Miller
, (Wed Aug 13, 11:25 pm)
Bootmem allocator broken [was: console handover badness]
, Mikulas Patocka
, (Thu Aug 14, 7:11 pm)
Re: Bootmem allocator broken
, Johannes Weiner
, (Thu Aug 14, 7:40 pm)
Re: Bootmem allocator broken
, David Miller
, (Thu Aug 14, 7:25 pm)
Re: Bootmem allocator broken
, Alexander Beregalov
, (Fri Aug 15, 7:09 am)
Re: Bootmem allocator broken
, David Miller
, (Fri Aug 15, 5:13 pm)
Re: console handover badness
, David Miller
, (Wed Aug 13, 4:50 am)
Re: console handover badness
, David Miller
, (Tue Aug 12, 9:22 pm)
Re: stack overflow on Sparc64
, David Miller
, (Tue Aug 12, 4:22 am)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Tue Aug 12, 8:53 pm)
Re: stack overflow on Sparc64
, David Miller
, (Tue Aug 12, 8:59 pm)
Re: stack overflow on Sparc64
, David Miller
, (Sun Jun 22, 3:03 am)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Sun Jun 22, 9:48 am)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Wed Jun 18, 11:24 pm)
Re: stack overflow on Sparc64
, David Miller
, (Wed Jun 18, 11:59 pm)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Thu Jun 19, 1:17 am)
Re: stack overflow on Sparc64
, David Miller
, (Thu Jun 19, 2:37 am)
Re: stack overflow on Sparc64
, Mikulas Patocka
, (Thu Jun 19, 9:01 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andrew Morton
-mm merge plans for 2.6.23
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Gabriel C
Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]
git
:
linux-netdev
:
Gerrit Renker
[PATCH 03/37] dccp: List management for new feature negotiation
David Miller
[GIT]: Networking
Thomas Jarosch
Re: TCP connection stalls under 2.6.24.7
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
5 users
and
1051 guests
online.
Online users
strcmp
zeekec
ppcloophole
nataliapeters
dleeseci
Syndicate