pagetable lab initialized
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
#include "defs.h"
|
||||
|
||||
// Saved registers for kernel context switches.
|
||||
struct context {
|
||||
uint64 ra;
|
||||
@@ -93,7 +91,6 @@ struct proc {
|
||||
int killed; // If non-zero, have been killed
|
||||
int xstate; // Exit status to be returned to parent's wait
|
||||
int pid; // Process ID
|
||||
int tracemask; // Trace Mask
|
||||
|
||||
// wait_lock must be held when using this:
|
||||
struct proc *parent; // Parent process
|
||||
@@ -107,5 +104,4 @@ struct proc {
|
||||
struct file *ofile[NOFILE]; // Open files
|
||||
struct inode *cwd; // Current directory
|
||||
char name[16]; // Process name (debugging)
|
||||
int syscall_counts[24]; // 每个系统调用的调用次数
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user