ref: e391b7ec8c0dc746a70725f3fc598def0419d1e6
dir: /sys/src/ape/lib/ap/riscv64/notejmp.c/
#include <u.h> #include <libc.h> #include <ureg.h> void notejmp(void *vr, jmp_buf j, int ret) { struct Ureg *r = vr; r->ret = ret; if(ret == 0) r->ret = 1; r->pc = j[JMPBUFPC]; r->sp = j[JMPBUFSP]; noted(NCONT); }