From b6025b798d227b4d57a8fcbef30d343182f49f8f Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Thu, 14 Mar 2002 23:51:48 +0000 Subject: 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. --- sys/arch/powerpc/include/reg.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/arch/powerpc/include') diff --git a/sys/arch/powerpc/include/reg.h b/sys/arch/powerpc/include/reg.h index 2ca9666b694..22ad1ed7255 100644 --- a/sys/arch/powerpc/include/reg.h +++ b/sys/arch/powerpc/include/reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: reg.h,v 1.5 2001/12/17 03:19:01 drahn Exp $ */ +/* $OpenBSD: reg.h,v 1.6 2002/03/14 23:51:47 drahn Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -62,16 +62,15 @@ struct reg { struct vreg { u_int32_t vreg[32][4]; - u_int32_t vscr; + u_int64_t vscr; u_int32_t vrsave; + u_int32_t pad; }; #ifdef _KERNEL -#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 /* _KERNEL */ #endif /* !_POWERPC_REG_H_ */ -- cgit v1.2.3