patch-2.2.17 linux/arch/ppc/kernel/mk_defs.c
Next file: linux/arch/ppc/kernel/openpic.c
Previous file: linux/arch/ppc/kernel/misc.S
Back to the patch index
Back to the overall index
-  Lines: 22
-  Date:
Mon Sep  4 18:39:16 2000
-  Orig file: 
v2.2.16/arch/ppc/kernel/mk_defs.c
-  Orig date: 
Mon Sep  4 18:37:47 2000
diff -u --recursive --new-file v2.2.16/arch/ppc/kernel/mk_defs.c linux/arch/ppc/kernel/mk_defs.c
@@ -8,7 +8,7 @@
  * #defines from the assembly-language output.
  */
 
-#include <stddef.h>
+#include <linux/config.h>
 #include <linux/signal.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
@@ -48,6 +48,12 @@
 	DEFINE(NEED_RESCHED, offsetof(struct task_struct, need_resched));
 	DEFINE(TSS_FPR0, offsetof(struct thread_struct, fpr[0]));
 	DEFINE(TSS_FPSCR, offsetof(struct thread_struct, fpscr));
+#ifdef CONFIG_ALTIVEC
+	DEFINE(TSS_VR0, offsetof(struct thread_struct, vr[0]));
+	DEFINE(TSS_VRSAVE, offsetof(struct thread_struct, vrsave));
+	DEFINE(TSS_VSCR, offsetof(struct thread_struct, vscr));
+#endif /* CONFIG_ALTIVEC */
+
 	/* Interrupt register frame */
 	DEFINE(TASK_UNION_SIZE, sizeof(union task_union));
 	DEFINE(STACK_FRAME_OVERHEAD, STACK_FRAME_OVERHEAD);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)