Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/include Add comments and AltiVec reg state.
details: https://anonhg.NetBSD.org/src/rev/8b6d14360b10
branches: trunk
changeset: 499565:8b6d14360b10
user: matt <matt%NetBSD.org@localhost>
date: Thu Nov 23 02:35:10 2000 +0000
description:
Add comments and AltiVec reg state.
diffstat:
sys/arch/powerpc/include/reg.h | 29 ++++++++++++++++++++---------
1 files changed, 20 insertions(+), 9 deletions(-)
diffs (39 lines):
diff -r b0966bc58cde -r 8b6d14360b10 sys/arch/powerpc/include/reg.h
--- a/sys/arch/powerpc/include/reg.h Wed Nov 22 22:17:39 2000 +0000
+++ b/sys/arch/powerpc/include/reg.h Thu Nov 23 02:35:10 2000 +0000
@@ -1,15 +1,26 @@
-/* $NetBSD: reg.h,v 1.4 2000/06/04 09:30:44 tsubai Exp $ */
+/* $NetBSD: reg.h,v 1.5 2000/11/23 02:35:10 matt Exp $ */
-struct reg {
+#ifndef _POWERPC_REG_H_
+#define _POWERPC_REG_H_
+
+struct reg { /* base registers */
register_t fixreg[32];
- register_t lr;
- int cr;
- int xer;
- register_t ctr;
- register_t pc;
+ register_t lr; /* Link Register */
+ int cr; /* Condition Register */
+ int xer; /* SPR 1 */
+ register_t ctr; /* Count Register */
+ register_t pc; /* Program Counter */
};
-struct fpreg {
+struct fpreg { /* Floating Point registers */
double fpreg[32];
- double fpscr;
+ double fpscr; /* Status and Control Register */
};
+
+struct vreg { /* Vector registers */
+ u_int32_t vreg[32][4];
+ register_t vscr; /* Vector Status And Control Register */
+ register_t vrsave; /* SPR 238 */
+};
+
+#endif /* _POWERPC_REG_H_ */
Home |
Main Index |
Thread Index |
Old Index