patch-2.1.23 linux/include/asm-m68k/processor.h

Next file: linux/include/asm-mips/cache.h
Previous file: linux/include/asm-m68k/cache.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.22/linux/include/asm-m68k/processor.h linux/include/asm-m68k/processor.h
@@ -54,9 +54,6 @@
 	{0, 0}, 0, {0,}, {0, 0, 0}, {0,}, \
 }
 
-#define alloc_kernel_stack()    __get_free_page(GFP_KERNEL)
-#define free_kernel_stack(page) free_page((page))
-
 /*
  * Do necessary setup to start up a newly executed thread.
  */
@@ -78,6 +75,9 @@
 	wrusp(usp);
 }
 
+/* Free all resources held by a thread. */
+extern void release_thread(struct task_struct *);
+
 /*
  * Return saved PC of a blocked thread.
  */
@@ -93,5 +93,11 @@
 	else
 		return sw->retpc;
 }
+
+/* Allocation and freeing of basic task resources. */
+#define alloc_task_struct()	kmalloc(sizeof(struct task_struct), GFP_KERNEL)
+#define alloc_kernel_stack(p)	__get_free_page(GFP_KERNEL)
+#define free_task_struct(p)	kfree(p)
+#define free_kernel_stack(page) free_page((page))
 
 #endif

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