summaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/proc.h b/proc.h
index 38a2d32..7047d54 100644
--- a/proc.h
+++ b/proc.h
@@ -30,12 +30,14 @@ mycpu(void) {
return cpu;
}
+#if 0
static inline struct proc*
myproc(void) {
struct proc *proc;
asm("movl %%gs:4, %0" : "=r"(proc));
return proc;
}
+#endif
//PAGEBREAK: 17
@@ -74,6 +76,7 @@ struct proc {
struct file *ofile[NOFILE]; // Open files
struct inode *cwd; // Current directory
char name[16]; // Process name (debugging)
+ struct cpu *cpu; // If running, which cpu.
};
// Process memory is laid out contiguously, low addresses first: