replace setjmp/longjmp with swtch

This commit is contained in:
rsc 2007-08-28 12:48:33 +00:00
parent b52dea08bc
commit 818fc0125e
7 changed files with 55 additions and 86 deletions

7
defs.h
View file

@ -1,7 +1,7 @@
struct buf;
struct context;
struct file;
struct inode;
struct jmpbuf;
struct pipe;
struct proc;
struct spinlock;
@ -109,9 +109,8 @@ void userinit(void);
void wakeup(void*);
void yield(void);
// setjmp.S
void longjmp(struct jmpbuf*);
int setjmp(struct jmpbuf*);
// swtch.S
void swtch(struct context*, struct context*);
// spinlock.c
void acquire(struct spinlock*);