diff options
author | 2011-04-21 13:13:16 +0000 | |
---|---|---|
committer | 2011-04-21 13:13:16 +0000 | |
commit | 9f774afcf44d3326b92c6ee8172fd948eb1d3c67 (patch) | |
tree | 9a920b7420da388e8cbe2b8ce627648b14f41c3e | |
parent | Move interrupt related defines and prototypes from cpu.h to intr.h. (diff) | |
download | wireguard-openbsd-9f774afcf44d3326b92c6ee8172fd948eb1d3c67.tar.xz wireguard-openbsd-9f774afcf44d3326b92c6ee8172fd948eb1d3c67.zip |
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@
-rw-r--r-- | sys/arch/hppa64/include/frame.h | 3 |
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. |