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

Next file: linux/include/asm-alpha/segment.h
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.12/linux/include/asm-alpha/processor.h linux/include/asm-alpha/processor.h
@@ -39,6 +39,7 @@
 	 */
 	unsigned long flags;
 	unsigned long res1, res2;
+	unsigned long segment; 
 };
 
 #define INIT_MMAP { &init_mm, 0xfffffc0000000000,  0xfffffc0010000000, \
@@ -47,7 +48,7 @@
 #define INIT_TSS  { \
 	0, 0, 0, \
 	0, 0, 0, \
-	0, 0, 0, \
+	0, 0, 0, KERNEL_DS, \
 }
 
 #define alloc_kernel_stack()    get_free_page(GFP_KERNEL)
@@ -74,11 +75,6 @@
 /*
  * Do necessary setup to start up a newly executed thread.
  */
-static inline void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp)
-{
-	regs->pc = pc;
-	regs->ps = 8;
-	wrusp(sp);
-}
+extern void start_thread(struct pt_regs *, unsigned long, unsigned long);
 
 #endif /* __ASM_ALPHA_PROCESSOR_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov