shithub: riscv

ref: e51c4bc6e493a9cd0d9e9d7f1d24c57ae77bab65
dir: /sys/src/libc/mips/notejmp.c/

View raw version
#include <u.h>
#include <libc.h>
#include <ureg.h>

void
notejmp(void *vr, jmp_buf j, int ret)
{
	struct Ureg *r = vr;

	r->r1 = ret;
	if(ret == 0)
		r->r1 = 1;
	r->pc = j[JMPBUFPC];
	r->sp = j[JMPBUFSP];
	noted(NCONT);
}