linux-mips
[Top] [All Lists]

How to detect STACKOVEFLOW on mips

To: linux-mips@linux-mips.org
Subject: How to detect STACKOVEFLOW on mips
From: Adam Jiang <jiang.adam@gmail.com>
Date: Wed, 30 Jun 2010 14:59:42 +0900
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=3d1596tp6MdENke0aF7f+kto+eRMoCDpc8q5ub6kf6k=; b=EgoiRxSRrP6tdnFE0x7parnnrCjv/WLImqSXSwxCPmbbdqtQhDVY3SSZ8iA620J9qH sD0N51tRBPFhZYu9tVQbU+yxwLMkoJtXPQLOqafrpLQX6k6TvHJy3xXqKorkFUwD/+Tt lqxhKhGnFZUMNozsCE+9h5FTWkY1JWizqRAKw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=t4MkZCvbSZePuZzuulbyT1AWK5CoI/h3Zkt1fuiwoQ5qpRBg6VVZLLveZhiDZGavGJ 3dR+vGtpf7kToMq1F7SNg/t7rwT22RMcvviLqBYLJIYY1MyRjdR5DSYYMBN2jlu3KxUi 6Q0bR/xudmY0E+FVOPE+FosdgztoGme3DDf+Y=
Sender: linux-mips-bounce@linux-mips.org
Hello, list.

I'm having a problem with kernel mode stack on my box. It seems that
STACKOVERFLOW happened to Linux kernel. However, I can't prove it
because the lack of any detection in __do_IRQ() function just like on
the other architectures. If you know something about, please help me
on following two questions.
- Is there any possible to do this on MIPS?
- or, more simple question, how could I get the address $sp pointed by
asm() notation in C?

Any suggestion from you will be appreciated.

Best regards,
/Adam

<Prev in Thread] Current Thread [Next in Thread>