Skip to contentSkip to conversation

How to increase kernel stack size?

DISCUSSION Patrick Huesmann 1 participant 2 messages May 9, 2005 – May 10, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

is there a way to set the kernel stack size (for interrupts) at compile time? I need to have more stack space for the external interrupt on a PPC-405.

BTW, I'm using a RTAI patch but it shouldn't matter as the realtime interrupts use the same stack as Linux interrupts.

TIA,
Patrick

#1 lore raw

Just FYI:

The symbol INIT_TASK_SIZE defines the length of a union (task_union) which holds the kernel stack. But when I define this value to be larger than 8192, the kernel wouldn't boot.
So this value is probably hard-coded somewhere else.

BTW, I'm using 2.4.26

Does someone know how to increase the kernel stack size for PPC archs? I really need more stack for my external interrupt b/c sometimes the peripheral generates fast bursts on the external interrupt line, which lead to kernel stack overflow.
(SA_INTERRUPT doesn't help because this is a realtime interrupt).

Any ideas?

TIA,
Patrick