<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/csky/kernel/stacktrace.c, branch linux-5.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-05-13T09:55:06Z</updated>
<entry>
<title>csky: Fixup calltrace panic</title>
<updated>2020-05-13T09:55:06Z</updated>
<author>
<name>Guo Ren</name>
</author>
<published>2020-05-13T07:15:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=18c07d23da5a48525b2955aa269b8bb108c19300'/>
<id>urn:sha1:18c07d23da5a48525b2955aa269b8bb108c19300</id>
<content type='text'>
The implementation of show_stack will panic with wrong fp:

addr    = *fp++;

because the fp isn't checked properly.

The current implementations of show_stack, wchan and stack_trace
haven't been designed properly, so just deprecate them.

This patch is a reference to riscv's way, all codes are modified from
arm's. The patch is passed with:

 - cat /proc/&lt;pid&gt;/stack
 - cat /proc/&lt;pid&gt;/wchan
 - echo c &gt; /proc/sysrq-trigger

Signed-off-by: Guo Ren &lt;guoren@linux.alibaba.com&gt;
</content>
</entry>
<entry>
<title>csky: stacktrace supported.</title>
<updated>2018-12-31T15:12:22Z</updated>
<author>
<name>Guo Ren</name>
</author>
<published>2018-12-09T06:18:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0ea2dc7cd668be5475babecaf6fdeaa464e2847b'/>
<id>urn:sha1:0ea2dc7cd668be5475babecaf6fdeaa464e2847b</id>
<content type='text'>
The gcc option "-mbacktrace" will push fp(r8),lr into stack and we could
unwind the stack with:
	fp = *fp
	lr = (unsigned int *)fp[1]

Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
</content>
</entry>
</feed>
