patch-2.3.38 linux/include/asm-i386/processor.h
Next file: linux/include/asm-m68k/processor.h
Previous file: linux/include/asm-i386/checksum.h
Back to the patch index
Back to the overall index
- Lines: 8
- Date:
Fri Jan 7 15:30:13 2000
- Orig file:
v2.3.37/linux/include/asm-i386/processor.h
- Orig date:
Thu Nov 11 20:11:51 1999
diff -u --recursive --new-file v2.3.37/linux/include/asm-i386/processor.h linux/include/asm-i386/processor.h
@@ -413,6 +413,7 @@
#define THREAD_SIZE (2*PAGE_SIZE)
#define alloc_task_struct() ((struct task_struct *) __get_free_pages(GFP_KERNEL,1))
#define free_task_struct(p) free_pages((unsigned long) (p), 1)
+#define get_task_struct(tsk) atomic_inc(&mem_map[MAP_NR(tsk)].count)
#define init_task (init_task_union.task)
#define init_stack (init_task_union.stack)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)