| 1 | Taken from the posix-riscv64 subdirectory in the community/drawterm source.
|
| 2 |
|
| 3 | diff -uNr 9base-6-orig/lib9/getcallerpc-riscv64.c 9base-6/lib9/getcallerpc-riscv64.c
|
| 4 | |
| 5 | |
| 6 | @@ -0,0 +1,7 @@
|
| 7 | +#include <lib9.h>
|
| 8 | +
|
| 9 | +ulong
|
| 10 | +getcallerpc(void *x)
|
| 11 | +{
|
| 12 | + return ((uintptr*)x)[-1];
|
| 13 | +}
|