|
|
1.1 ! root 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: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.