patch-2.3.38 linux/include/asm-sparc64/processor.h

Next file: linux/include/asm-sparc64/unistd.h
Previous file: linux/include/asm-sparc64/fcntl.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.37/linux/include/asm-sparc64/processor.h linux/include/asm-sparc64/processor.h
@@ -1,4 +1,4 @@
-/* $Id: processor.h,v 1.58 1999/12/15 14:19:14 davem Exp $
+/* $Id: processor.h,v 1.60 2000/01/07 20:21:45 davem Exp $
  * include/asm-sparc64/processor.h
  *
  * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
@@ -257,6 +257,7 @@
 /* Allocation and freeing of task_struct and kernel stack. */
 #define alloc_task_struct()   ((struct task_struct *)__get_free_pages(GFP_KERNEL, 1))
 #define free_task_struct(tsk) free_pages((unsigned long)(tsk),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)