uml: stop specially protecting kernel stacks
[linux-2.6.git] / arch / um / kernel / init_task.c
index cba516e6c99a279683317045c1392b6315b5492c..fa90db964b28733ccd9c97ac688fa170aa7d4022 100644 (file)
@@ -47,7 +47,9 @@ union thread_union cpu0_irqstack
        __attribute__((__section__(".data.init_irqstack"))) =
                { INIT_THREAD_INFO(init_task) };
 
+#ifdef CONFIG_MODE_TT
 void unprotect_stack(unsigned long stack)
 {
        os_protect_memory((void *) stack, THREAD_SIZE, 1, 1, 0);
 }
+#endif