summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/include/reg.h
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-11-13 14:31:53 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-11-13 14:31:53 +0000
commit661e8fbc2f4b11788fc42fa5a38571b6fd93fc00 (patch)
tree0df2eb3234baf8b5608206ffee5b1174dafafc1a /sys/arch/powerpc/include/reg.h
parentbb78d2489d1784bc41de0246d10a10951c377a71 (diff)
Add AltiVec support to powerpc/macppc. This is not currently enabled because
the 'as' in openbsd source tree does not yet support altivec instructions. The pieces to enable it have been put in macppc/conf/GENERIC and macppc/conf/Makefile.macppc in comments. Once 'as' is updated the kernel option should be removed.
Diffstat (limited to 'sys/arch/powerpc/include/reg.h')
-rw-r--r--sys/arch/powerpc/include/reg.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/arch/powerpc/include/reg.h b/sys/arch/powerpc/include/reg.h
index d3b43ec642a..6cdf7067053 100644
--- a/sys/arch/powerpc/include/reg.h
+++ b/sys/arch/powerpc/include/reg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: reg.h,v 1.3 2001/06/29 06:07:09 drahn Exp $ */
+/* $OpenBSD: reg.h,v 1.4 2001/11/13 14:31:52 drahn Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -59,5 +59,18 @@ struct reg {
u_int32_t xer;
u_int32_t mq;
};
+
+struct vreg {
+ u_int32_t vreg[32][4];
+ u_int32_t vscr;
+ u_int32_t vrsave;
+};
+
int process_read_regs __P((struct proc *p, struct reg *regs));
+#ifdef PPC_VECTOR_SUPPORTED
+void save_vec(struct proc *);
+void enable_vec(struct proc *);
+extern struct proc *ppc_vecproc;
+extern struct pool ppc_vecpl;
+#endif /* PPC_VECTOR_SUPPORTED */
#endif /* !_POWERPC_REG_H_ */