summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-03-14 23:51:48 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-03-14 23:51:48 +0000
commitb6025b798d227b4d57a8fcbef30d343182f49f8f (patch)
tree14ee8d893822ed1a3f332e626c6d0126ce10fe54 /sys/arch/macppc
parentf86f08518257a9c351bef74a3deca6f102dd22df (diff)
Improved altivec support for powerpc/macppc.
Fix bug where altivec context was not freed on process exit. Fix bug where vscr was not correctly saved/restored. replace asm statement was macros which expand to the same asm code or to .long XXX which evaluates to the same instruction since in-tree gas does not support altivec. Enable ALTIVEC support by default on macppc, still conditional for other powerpc ports.
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r--sys/arch/macppc/conf/GENERIC4
-rw-r--r--sys/arch/macppc/macppc/machdep.c6
2 files changed, 3 insertions, 7 deletions
diff --git a/sys/arch/macppc/conf/GENERIC b/sys/arch/macppc/conf/GENERIC
index bfc480f7453..e1734ab897a 100644
--- a/sys/arch/macppc/conf/GENERIC
+++ b/sys/arch/macppc/conf/GENERIC
@@ -1,4 +1,4 @@
-# $OpenBSD: GENERIC,v 1.13 2002/02/23 17:04:30 matthieu Exp $
+# $OpenBSD: GENERIC,v 1.14 2002/03/14 23:51:47 drahn Exp $
#
# PPC GENERIC config file
#
@@ -16,7 +16,7 @@ option PPC_MPC106_BUG
option PCIVERBOSE
option USBVERBOSE
#option MACOBIOVERBOSE
-#option PPC_VECTOR_SUPPORTED
+option ALTIVEC
option APERTURE # in-kernel aperture driver for XFree86
option USER_PCICONF # user-space PCI configuration
diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c
index 7900f832b39..addab52a2e8 100644
--- a/sys/arch/macppc/macppc/machdep.c
+++ b/sys/arch/macppc/macppc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.30 2002/03/14 03:15:56 millert Exp $ */
+/* $OpenBSD: machdep.c,v 1.31 2002/03/14 23:51:47 drahn Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -101,9 +101,7 @@ struct pmap *curpm;
struct proc *fpuproc;
extern struct user *proc0paddr;
-#ifdef PPC_VECTOR_SUPPORTED
struct pool ppc_vecpl;
-#endif /* PPC_VECTOR_SUPPORTED */
/*
* Declare these as initialized data so we can patch them.
@@ -477,9 +475,7 @@ where = 3;
*/
(void)power4e_get_eth_addr();
-#ifdef PPC_VECTOR_SUPPORTED
pool_init(&ppc_vecpl, sizeof(struct vreg), 16, 0, 0, "ppcvec", NULL);
-#endif /* PPC_VECTOR_SUPPORTED */
}
void ofw_dbg(char *str)