diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2002-03-14 23:51:48 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2002-03-14 23:51:48 +0000 |
commit | b6025b798d227b4d57a8fcbef30d343182f49f8f (patch) | |
tree | 14ee8d893822ed1a3f332e626c6d0126ce10fe54 /sys/arch/powerpc/include | |
parent | f86f08518257a9c351bef74a3deca6f102dd22df (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/powerpc/include')
-rw-r--r-- | sys/arch/powerpc/include/reg.h | 7 |
1 files changed, 3 insertions, 4 deletions
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_ */ |