diff options
| author | Charles.Forsyth <devnull@localhost> | 2009-06-12 18:34:15 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2009-06-12 18:34:15 +0000 |
| commit | d2caef7bfa67181341fe2f1cbf68884ae6e45639 (patch) | |
| tree | 1a2ebabf87a883d4886351007af33aa6ca5fd4ed /lib9/getcallerpc-Linux-power.c | |
| parent | f4ab6bd1adbb9bff11da6885084de2ed31f2a415 (diff) | |
20090612-1932
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]; +} + |
