~mcf/drawterm

ref: d28c5f37cfbd0507796d76ced17ad01fd11ea564 drawterm/posix-riscv64/getcallerpc.c -rw-r--r-- 94 bytes
d28c5f37 add preliminary riscv64 support from archlinux (thanks Sören Tempel) 6 months ago
                                                                                
1
2
3
4
5
6
7
8
#include "u.h"
#include "libc.h"

uintptr
getcallerpc(void *a)
{
	return ((uintptr*)a)[-1];
}