patch-2.4.10 linux/arch/sparc64/kernel/init_task.c
Next file: linux/arch/sparc64/kernel/ioctl32.c
Previous file: linux/arch/sparc64/kernel/head.S
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Thu Sep 20 14:11:57 2001
- Orig file:
v2.4.9/linux/arch/sparc64/kernel/init_task.c
- Orig date:
Thu Apr 19 08:38:48 2001
diff -u --recursive --new-file v2.4.9/linux/arch/sparc64/kernel/init_task.c linux/arch/sparc64/kernel/init_task.c
@@ -3,8 +3,8 @@
#include <asm/pgtable.h>
#include <asm/uaccess.h>
+#include <asm/processor.h>
-static struct vm_area_struct init_mmap = INIT_MMAP;
static struct fs_struct init_fs = INIT_FS;
static struct files_struct init_files = INIT_FILES;
static struct signal_struct init_signals = INIT_SIGNALS;
@@ -17,3 +17,11 @@
*/
__asm__ (".text");
union task_union init_task_union = { INIT_TASK(init_task_union.task) };
+
+/*
+ * This is to make the init_task+stack of the right size for >8k pagesize.
+ * The definition of task_union in sched.h makes it 16k wide.
+ */
+#if PAGE_SHIFT != 13
+char init_task_stack[THREAD_SIZE - INIT_TASK_SIZE] = { 0 };
+#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)