tadd x86 64 - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0ebee0de76f5225c87516bcebcd1ac59eb341b97
(DIR) parent 86502504820d9626542a310fd48b50ff760ec279
(HTM) 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(-)
---
(DIR) diff --git a/src/lib9/getcallerpc-x86_64.c b/src/lib9/getcallerpc-x86_64.c
t@@ -0,0 +1,7 @@
+#include <lib9.h>
+
+ulong
+getcallerpc(void *x)
+{
+ return (((ulong*)(x))[-1]);
+}