replace setjmp/longjmp with swtch
This commit is contained in:
parent
b52dea08bc
commit
818fc0125e
7 changed files with 55 additions and 86 deletions
7
defs.h
7
defs.h
|
|
@ -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*);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue