]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libc/68000/notejmp.c
marshal(1): fix example: upas/mail -> mail (thanks fulton)
[plan9front.git] / sys / src / libc / 68000 / notejmp.c
1 #include <u.h>
2 #include <libc.h>
3 #define UREGVARSZ 4     /* not right but doesn't matter */
4 #include <ureg.h>
5
6 void
7 notejmp(void *vr, jmp_buf j, int ret)
8 {
9         struct Ureg *r = vr;
10
11         r->r0 = ret;
12         if(ret == 0)
13                 r->r0 = 1;
14         r->pc = j[JMPBUFPC];
15         r->usp = j[JMPBUFSP] + 4;
16         noted(NCONT);
17 }