diff options
author | rsc <devnull@localhost> | 2005-01-18 05:57:56 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-18 05:57:56 +0000 |
commit | 0ebee0de76f5225c87516bcebcd1ac59eb341b97 (patch) | |
tree | 6e6564d9ea3d121786496e328ee8ea3b31d025c1 /src/lib9 | |
parent | 86502504820d9626542a310fd48b50ff760ec279 (diff) | |
download | plan9port-0ebee0de76f5225c87516bcebcd1ac59eb341b97.tar.gz plan9port-0ebee0de76f5225c87516bcebcd1ac59eb341b97.tar.bz2 plan9port-0ebee0de76f5225c87516bcebcd1ac59eb341b97.zip |
add x86 64
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/getcallerpc-x86_64.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib9/getcallerpc-x86_64.c b/src/lib9/getcallerpc-x86_64.c new file mode 100644 index 00000000..1367370e --- /dev/null +++ b/src/lib9/getcallerpc-x86_64.c @@ -0,0 +1,7 @@ +#include <lib9.h> + +ulong +getcallerpc(void *x) +{ + return (((ulong*)(x))[-1]); +} |