]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libc/386/notejmp.c
audiohda: make it work with sb600 onboard sound
[plan9front.git] / sys / src / libc / 386 / notejmp.c
1 #include <u.h>
2 #include <libc.h>
3 #include <ureg.h>
4
5 void
6 notejmp(void *vr, jmp_buf j, int ret)
7 {
8         struct Ureg *r = vr;
9
10         r->ax = ret;
11         if(ret == 0)
12                 r->ax = 1;
13         r->pc = j[JMPBUFPC];
14         r->sp = j[JMPBUFSP] + 4;
15         noted(NCONT);
16 }