| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: altivec.h,v 1.14 2011/05/02 02:01:32 matt Exp $ */ | | 1 | /* $NetBSD: altivec.h,v 1.15 2011/05/02 06:29:23 matt Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 1999 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 1999 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Matt Thomas. | | 8 | * by Matt Thomas. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -52,27 +52,27 @@ void vec_restore_from_mcontext(struct lw | | | @@ -52,27 +52,27 @@ void vec_restore_from_mcontext(struct lw |
52 | bool vec_save_to_mcontext(struct lwp *, mcontext_t *, unsigned int *); | | 52 | bool vec_save_to_mcontext(struct lwp *, mcontext_t *, unsigned int *); |
53 | | | 53 | |
54 | int vec_siginfo_code(const struct trapframe *); | | 54 | int vec_siginfo_code(const struct trapframe *); |
55 | | | 55 | |
56 | static inline void | | 56 | static inline void |
57 | vec_load(void) | | 57 | vec_load(void) |
58 | { | | 58 | { |
59 | pcu_load(&vec_ops); | | 59 | pcu_load(&vec_ops); |
60 | } | | 60 | } |
61 | | | 61 | |
62 | static inline void | | 62 | static inline void |
63 | vec_save(void) | | 63 | vec_save(void) |
64 | { | | 64 | { |
65 | pcu_load(&vec_ops); | | 65 | pcu_save(&vec_ops); |
66 | } | | 66 | } |
67 | | | 67 | |
68 | static inline void | | 68 | static inline void |
69 | vec_discard(void) | | 69 | vec_discard(void) |
70 | { | | 70 | { |
71 | pcu_discard(&vec_ops); | | 71 | pcu_discard(&vec_ops); |
72 | } | | 72 | } |
73 | | | 73 | |
74 | void vec_load_from_vreg(const struct vreg *); | | 74 | void vec_load_from_vreg(const struct vreg *); |
75 | void vec_unload_to_vreg(struct vreg *); | | 75 | void vec_unload_to_vreg(struct vreg *); |
76 | | | 76 | |
77 | /* OEA only */ | | 77 | /* OEA only */ |
78 | void vzeropage(paddr_t); | | 78 | void vzeropage(paddr_t); |