summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-28 12:48:33 +0000
committerrsc <rsc>2007-08-28 12:48:33 +0000
commit818fc0125e7d73fdf4f1a94f178254e5d05c9831 (patch)
tree2aefee5aad4478bc570d772a73ee1999d6066b54 /defs.h
parentb52dea08bc1252bd842bf86f34d912c9ab7a02df (diff)
downloadxv6-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.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/defs.h b/defs.h
index a72ecaf..35323ea 100644
--- a/defs.h
+++ b/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*);