patch-2.1.26 linux/include/asm-alpha/current.h
Next file: linux/include/asm-alpha/system.h
Previous file: linux/include/asm-alpha/checksum.h
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Thu Feb 6 14:42:35 1997
- Orig file:
v2.1.25/linux/include/asm-alpha/current.h
- Orig date:
Tue Dec 31 21:41:08 1996
diff -u --recursive --new-file v2.1.25/linux/include/asm-alpha/current.h linux/include/asm-alpha/current.h
@@ -3,10 +3,10 @@
/* Some architectures may want to do something "clever" here since
* this is the most frequently accessed piece of data in the entire
- * kernel. For an example, see the Sparc implementation where an
- * entire register is hard locked to contain the value of current.
+ * kernel.
*/
extern struct task_struct *current_set[NR_CPUS];
-#define current (current_set[smp_processor_id()]) /* Current on this processor */
+
+register struct task_struct *current __asm__("$8");
#endif /* !(_ALPHA_CURRENT_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov