commit 0ebee0de76f5225c87516bcebcd1ac59eb341b97 parent 86502504820d9626542a310fd48b50ff760ec279 Author: rsc <devnull@localhost> Date: Tue, 18 Jan 2005 05:57:56 +0000 add x86 64 Diffstat:
A | src/lib9/getcallerpc-x86_64.c | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/lib9/getcallerpc-x86_64.c b/src/lib9/getcallerpc-x86_64.c @@ -0,0 +1,7 @@ +#include <lib9.h> + +ulong +getcallerpc(void *x) +{ + return (((ulong*)(x))[-1]); +}