summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/hppa64/hppa64/machdep.c4
-rw-r--r--sys/arch/hppa64/include/frame.h7
2 files changed, 8 insertions, 3 deletions
diff --git a/sys/arch/hppa64/hppa64/machdep.c b/sys/arch/hppa64/hppa64/machdep.c
index 993af8a84df..8f18688ad7d 100644
--- a/sys/arch/hppa64/hppa64/machdep.c
+++ b/sys/arch/hppa64/hppa64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.47 2012/07/13 14:28:13 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.48 2012/07/13 15:10:51 jsing Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -792,7 +792,7 @@ setstack(struct trapframe *tf, u_long stack, register_t old_r3)
err = copyout(&old_r3, (caddr_t)stack, sizeof(register_t));
tf->tf_sp = stack += HPPA_FRAME_SIZE;
- return (copyout(&zero, (caddr_t)(stack + HPPA_FRAME_CRP),
+ return (copyout(&zero, (caddr_t)(stack + HPPA_FRAME_RP),
sizeof(register_t)) || err);
}
diff --git a/sys/arch/hppa64/include/frame.h b/sys/arch/hppa64/include/frame.h
index 60d4cb7d0cb..2b406b2787f 100644
--- a/sys/arch/hppa64/include/frame.h
+++ b/sys/arch/hppa64/include/frame.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: frame.h,v 1.2 2011/04/21 13:13:16 jsing Exp $ */
+/* $OpenBSD: frame.h,v 1.3 2012/07/13 15:10:51 jsing Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -109,6 +109,11 @@ struct trapframe {
unsigned long tf_pad[5];
};
+
+#ifdef _KERNEL
+int setstack(struct trapframe *, u_long, register_t);
+#endif /* _KERNEL */
+
#endif /* !_LOCORE */
#endif /* !_MACHINE_FRAME_H_ */