diff options
Diffstat (limited to 'lib9/getcallerpc-Linux-power.c')
| -rw-r--r-- | lib9/getcallerpc-Linux-power.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib9/getcallerpc-Linux-power.c b/lib9/getcallerpc-Linux-power.c new file mode 100644 index 00000000..4a4e4fb5 --- /dev/null +++ b/lib9/getcallerpc-Linux-power.c @@ -0,0 +1,12 @@ +#include <lib9.h> + +ulong +getcallerpc(void *x) +{ +ulong *lp; + + lp = x; + + return lp[-1]; +} + |
