the -ac kernels contained task struct colouring for i386, but Linus refused to merge it because he considers the 'str' trick as too ugly. The attached patch is just the task struct colouring, with bottom-of-stack for finding the current pointer. I've moved the support functions from arch/i386 into kernel/fork.c, within #ifdef ARCH_NEEDS_TASKSTRUCTCACHE. Is that the correct approach for such helpers, or should I create a CONFIG_ option? Is the implementation generic enough that other architectures can use it, too? It boots i386 SMP, but I haven't checked other configurations yet. -- Manfred