diff options
author | rsc <rsc> | 2007-08-28 12:48:33 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-08-28 12:48:33 +0000 |
commit | 818fc0125e7d73fdf4f1a94f178254e5d05c9831 (patch) | |
tree | 2aefee5aad4478bc570d772a73ee1999d6066b54 /defs.h | |
parent | b52dea08bc1252bd842bf86f34d912c9ab7a02df (diff) | |
download | xv6-labs-818fc0125e7d73fdf4f1a94f178254e5d05c9831.tar.gz xv6-labs-818fc0125e7d73fdf4f1a94f178254e5d05c9831.tar.bz2 xv6-labs-818fc0125e7d73fdf4f1a94f178254e5d05c9831.zip |
replace setjmp/longjmp with swtch
Diffstat (limited to 'defs.h')
-rw-r--r-- | defs.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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*); |