summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2011-04-21 13:13:17 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2011-04-21 13:13:17 +0000
commita069d5ac15a30bcde6488fd2301776b78e314708 (patch)
tree62cedab92717436ebc714ee5cf0cec1ecf88bdce /sys/arch
parent40346a005059aca0c6ca0ce88f878482abf555e6 (diff)
Provide a HPPA_FRAME_ARGS macro. This only works correctly for the
first eight arguments saved, due to the layout of the call frame. ok kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa64/include/frame.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/hppa64/include/frame.h b/sys/arch/hppa64/include/frame.h
index 3be63ffa0a5..60d4cb7d0cb 100644
--- a/sys/arch/hppa64/include/frame.h
+++ b/sys/arch/hppa64/include/frame.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: frame.h,v 1.1 2005/04/01 10:40:48 mickey Exp $ */
+/* $OpenBSD: frame.h,v 1.2 2011/04/21 13:13:16 jsing Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -26,6 +26,7 @@
#define HPPA_FRAME_SIZE (128)
#define HPPA_FRAME_PSP (-8)
#define HPPA_FRAME_RP (-16)
+#define HPPA_FRAME_ARG(n) (-(16 + 8 * ((n) + 1)))
/*
* Macros to decode processor status word.