From eaea18cb9cbb86018dae8f1decfa217ecbe85fa5 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 22 Aug 2007 06:01:32 +0000 Subject: PDF at http://am.lcs.mit.edu/~rsc/xv6.pdf Various changes made while offline. + bwrite sector argument is redundant; use b->sector. + reformatting of files for nicer PDF page breaks + distinguish between locked, unlocked inodes in type signatures + change FD_FILE to FD_INODE + move userinit (nee proc0init) to proc.c + move ROOTDEV to param.h + always parenthesize sizeof argument --- proc.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'proc.h') diff --git a/proc.h b/proc.h index 7a04cd5..01bff4a 100644 --- a/proc.h +++ b/proc.h @@ -37,7 +37,7 @@ struct proc { void *chan; // If non-zero, sleeping on chan int killed; // If non-zero, have been killed struct file *ofile[NOFILE]; // Open files - struct inode *cwd; // Current directory + struct uinode *cwd; // Current directory struct jmpbuf jmpbuf; // Jump here to run process struct trapframe *tf; // Trap frame for current interrupt char name[16]; // Process name (debugging) @@ -49,8 +49,6 @@ struct proc { // fixed-size stack // expandable heap -extern struct proc proc[]; - // If xv6 was only for uniprocessors, this could be // struct proc *cp; // Instead we have an array curproc, one per -- cgit v1.2.3