patch-2.3.24 linux/include/asm-i386/processor.h
Next file: linux/include/asm-i386/resource.h
Previous file: linux/include/asm-i386/pgtable-2level.h
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Wed Oct 27 16:17:06 1999
- Orig file:
v2.3.23/linux/include/asm-i386/processor.h
- Orig date:
Fri Oct 22 13:21:54 1999
diff -u --recursive --new-file v2.3.23/linux/include/asm-i386/processor.h linux/include/asm-i386/processor.h
@@ -407,8 +407,8 @@
}
#define THREAD_SIZE (2*PAGE_SIZE)
-extern struct task_struct * alloc_task_struct(void);
-extern void free_task_struct(struct task_struct *);
+#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 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)