patch-2.3.13 linux/include/asm-alpha/processor.h

Next file: linux/include/asm-alpha/resource.h
Previous file: linux/include/asm-alpha/pgtable.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.12/linux/include/asm-alpha/processor.h linux/include/asm-alpha/processor.h
@@ -73,7 +73,7 @@
 #define INIT_MMAP { &init_mm, PAGE_OFFSET,  PAGE_OFFSET+0x10000000, \
 	NULL, PAGE_SHARED, VM_READ | VM_WRITE | VM_EXEC, 1, NULL, NULL }
 
-#define INIT_TSS  { \
+#define INIT_THREAD  { \
 	0, 0, 0, \
 	0, 0, 0, \
 	0, 0, 0, \
@@ -81,6 +81,8 @@
 	KERNEL_DS \
 }
 
+#define THREAD_SIZE (2*PAGE_SIZE)
+
 #include <asm/ptrace.h>
 
 /*
@@ -109,15 +111,16 @@
 	return 0;
 }
 
-/*
- * Do necessary setup to start up a newly executed thread.
- */
+/* Do necessary setup to start up a newly executed thread.  */
 extern void start_thread(struct pt_regs *, unsigned long, unsigned long);
 
 /* Free all resources held by a thread. */
 extern void release_thread(struct task_struct *);
 
-#define copy_segments(nr, tsk, mm)	do { } while (0)
+/* Create a kernel thread without removing it from tasklists.  */
+extern long kernel_thread(int (*fn)(void *), void *arg, unsigned long flags);
+
+#define copy_segments(tsk, mm)		do { } while (0)
 #define release_segments(mm)		do { } while (0)
 #define forget_segments()		do { } while (0)
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)