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 trapframe32 (for compat_netbsd32).
details: https://anonhg.NetBSD.org/src/rev/9e07c0e8c4ce
branches: trunk
changeset: 541839:9e07c0e8c4ce
user: matt <matt%NetBSD.org@localhost>
date: Sun Jan 19 00:42:24 2003 +0000
description:
Add trapframe32 (for compat_netbsd32).
Add CALLFRAMELEN. (so we can remove many of the hard coded "16" or "15"
in the powerpc code).
diffstat:
sys/arch/powerpc/include/frame.h | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diffs (43 lines):
diff -r 8b42bb161626 -r 9e07c0e8c4ce sys/arch/powerpc/include/frame.h
--- a/sys/arch/powerpc/include/frame.h Sun Jan 19 00:25:22 2003 +0000
+++ b/sys/arch/powerpc/include/frame.h Sun Jan 19 00:42:24 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: frame.h,v 1.9 2003/01/18 06:23:29 thorpej Exp $ */
+/* $NetBSD: frame.h,v 1.10 2003/01/19 00:42:24 matt Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -58,6 +58,25 @@
int exc;
uint32_t vrsave;
};
+
+#if defined(_KERNEL) || defined(_LKM)
+#ifdef _LP64
+struct trapframe32 {
+ register32_t fixreg[32];
+ register32_t lr;
+ int cr;
+ int xer;
+ register32_t ctr;
+ register32_t srr0;
+ register32_t srr1;
+ register32_t dar; /* dar & dsisr are only filled on a DSI trap */
+ int dsisr;
+ int exc;
+ uint32_t vrsave;
+};
+#endif
+#endif /* _KERNEL || _LKM */
+
/*
* This is to ensure alignment of the stackpointer
*/
@@ -83,6 +102,7 @@
/*
* Call frame for PowerPC used during fork.
*/
+#define CALLFRAMELEN sizeof(struct callframe)
struct callframe {
register_t sp;
register_t lr;
Home |
Main Index |
Thread Index |
Old Index