<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/sh/kernel/process.c, branch linux-2.6.21.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.21.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.21.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2007-03-05T05:13:26Z</updated>
<entry>
<title>sh: Fix kernel thread stack corruption with preempt.</title>
<updated>2007-03-05T05:13:26Z</updated>
<author>
<name>Hideo Saito</name>
</author>
<published>2007-02-28T09:35:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e6bcf562e58662b9765748d346e4c076b20e3aa5'/>
<id>urn:sha1:e6bcf562e58662b9765748d346e4c076b20e3aa5</id>
<content type='text'>
When I run a preemptive kernel-2.6.20 for SH7780, a created
kthread(pdflush) can not exit by do_exit() in kernel_thread_helper. I
think that the created kthread should have a room for 'struct pt_regs'
space on the stack top, because __switch_to() will refer to the space as
follows using 'regs = task_pt_regs(prev)' and next condition may be true.

Signed-off-by: Hideo Saito &lt;saito@densan.co.jp&gt;
Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>sh: Fixup cpu_data references for the non-boot CPUs.</title>
<updated>2007-02-13T01:54:45Z</updated>
<author>
<name>Paul Mundt</name>
</author>
<published>2006-12-25T01:19:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=11c1965687b0a472add948d4240dfe65a2fcb298'/>
<id>urn:sha1:11c1965687b0a472add948d4240dfe65a2fcb298</id>
<content type='text'>
There are a lot of bogus cpu_data-&gt; references that only end up working
for the boot CPU, convert these to current_cpu_data to fixup SMP.

Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>sh: Use a per-cpu ASID cache.</title>
<updated>2007-02-13T01:54:45Z</updated>
<author>
<name>Paul Mundt</name>
</author>
<published>2006-12-25T00:51:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aec5e0e1c179fac4bbca4007a3f0d3107275a73c'/>
<id>urn:sha1:aec5e0e1c179fac4bbca4007a3f0d3107275a73c</id>
<content type='text'>
Previously this was implemented using a global cache, cache
this per-CPU instead and bump up the number of context IDs to
match NR_CPUS.

Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>sh: Use a jump call table for debug trap handlers.</title>
<updated>2007-02-13T01:54:43Z</updated>
<author>
<name>Paul Mundt</name>
</author>
<published>2006-12-13T08:40:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f413d0d9fa7abcecc40e115cf4aead372d164a75'/>
<id>urn:sha1:f413d0d9fa7abcecc40e115cf4aead372d164a75</id>
<content type='text'>
This rips out most of the needlessly complicated sh_bios and kgdb
trap handling, and forces it all through a common fast dispatch path.
As more debug traps are inserted, it's important to keep them in sync
for all of the parts, not just SH-3/4.

As the SH-2 parts are unable to do traps in the &gt;= 0x40 range, we
restrict the debug traps to the 0x30-0x3f range on all parts, and
also bump the kgdb breakpoint trap down in to this range (from 0xff
to 0x3c) so it's possible to use for nommu.

Optionally, this table can be padded out to catch spurious traps for
SH-3/4, but we don't do that yet..

Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>sh: Fix get_wchan().</title>
<updated>2006-12-11T23:42:08Z</updated>
<author>
<name>Paul Mundt</name>
</author>
<published>2006-12-08T08:46:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b652c23cb0f7808bedb5442c416d91705a465c67'/>
<id>urn:sha1:b652c23cb0f7808bedb5442c416d91705a465c67</id>
<content type='text'>
Some time ago the schedule frame size changed and we failed to reflect
this in get_wchan() at the time. This first popped up as a problem on
SH7751R where schedule_frame ended up being unaligned and generating
an unaligned trap. This fixes it up again..

Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>sh: BUG() handling through trapa vector.</title>
<updated>2006-12-11T23:42:08Z</updated>
<author>
<name>Paul Mundt</name>
</author>
<published>2006-12-08T08:41:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dc34d312c7b25d5d0f54c16d143a9526936e5d38'/>
<id>urn:sha1:dc34d312c7b25d5d0f54c16d143a9526936e5d38</id>
<content type='text'>
Previously we haven't been doing anything with verbose BUG() reporting,
and we've been relying on the oops path for handling BUG()'s, which is
rather sub-optimal.

This switches BUG handling to use a fixed trapa vector (#0x3e) where we
construct a small bug frame post trapa instruction to get the context
right. This also makes it trivial to wire up a DIE_BUG for the atomic
die chain, which we couldn't really do before.

Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>sh: gcc4 support.</title>
<updated>2006-12-06T01:45:38Z</updated>
<author>
<name>Stuart Menefy</name>
</author>
<published>2006-11-21T02:16:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f0bc814cfbc212683c882e58b3d1afec6b3e3aa3'/>
<id>urn:sha1:f0bc814cfbc212683c882e58b3d1afec6b3e3aa3</id>
<content type='text'>
This fixes up the kernel for gcc4. The existing exception handlers
needed some wrapping for pt_regs access, acessing the registers
via a RELOC_HIDE() pointer.

The strcpy() issues popped up here too, so add -ffreestanding and
kill off the symbol export.

Signed-off-by: Stuart Menefy &lt;stuart.menefy@st.com&gt;
Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>sh: Proper show_stack/show_trace() implementation.</title>
<updated>2006-10-19T07:30:31Z</updated>
<author>
<name>Paul Mundt</name>
</author>
<published>2006-10-12T08:07:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6b0022305f80cf249de69e746f6f5ccf7ffc5b7c'/>
<id>urn:sha1:6b0022305f80cf249de69e746f6f5ccf7ffc5b7c</id>
<content type='text'>
This splits out some of the previous show_stack() implementation which
was mostly doing the show_trace() work without actually dumping any of
the stack contents. This now gets split in to two sections, where we
do the fetching of the stack pointer and subsequent stack dumping in
show_stack(), while moving the call trace in to show_trace().

Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>sh: SH-4A UBC support</title>
<updated>2006-10-12T03:16:13Z</updated>
<author>
<name>Ryusuke Sakato</name>
</author>
<published>2006-10-12T03:16:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8ae91b9ad88a130cd50fc0b78b16e7b9510b8067'/>
<id>urn:sha1:8ae91b9ad88a130cd50fc0b78b16e7b9510b8067</id>
<content type='text'>
A simple patch to enable the UBC on SH-4A.

Signed-off-by: Ryusuke Sakato &lt;sakato@hsdv.com&gt;
Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>sh: Initial vsyscall page support.</title>
<updated>2006-09-27T09:33:49Z</updated>
<author>
<name>Paul Mundt</name>
</author>
<published>2006-09-27T09:33:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=19f9a34f87c48bbd270d617d1c986d0c23866a1a'/>
<id>urn:sha1:19f9a34f87c48bbd270d617d1c986d0c23866a1a</id>
<content type='text'>
This implements initial support for the vsyscall page on SH.
At the moment we leave it configurable due to having nommu
to support from the same code base. We hook it up for the
signal trampoline return at present, with more to be added
later, once uClibc catches up.

Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
</feed>
