comparison src/proc.h @ 84:a4307abefd0b

include context.h on proc.h and ajastment directory on CMakeList.txt
author tobaru
date Mon, 14 Oct 2019 22:48:39 +0900
parents c976a8bbe8c5
children
comparison
equal deleted inserted replaced
83:d4e22a45a575 84:a4307abefd0b
1 #include "typedefData.h" 1 #include "typedefData.h"
2 #ifndef PROC_INCLUDE_ 2 #ifndef PROC_INCLUDE_
3 #define PROC_INCLUDE_ 3 #define PROC_INCLUDE_
4 #include "context.h"
4 5
5 // Per-CPU state, now we only support one CPU 6 // Per-CPU state, now we only support one CPU
6 struct cpu { 7 struct cpu {
7 uchar id; // index into cpus[] below 8 uchar id; // index into cpus[] below
8 struct context* scheduler; // swtch() here to enter scheduler 9 struct context* scheduler; // swtch() here to enter scheduler
66 void* chan; // If non-zero, sleeping on chan 67 void* chan; // If non-zero, sleeping on chan
67 int killed; // If non-zero, have been killed 68 int killed; // If non-zero, have been killed
68 struct file* ofile[NOFILE]; // Open files 69 struct file* ofile[NOFILE]; // Open files
69 struct inode* cwd; // Current directory 70 struct inode* cwd; // Current directory
70 char name[16]; // Process name (debugging) 71 char name[16]; // Process name (debugging)
72 struct Context cbc_context;
71 union cbc_arg { 73 union cbc_arg {
72 struct cbc_console_arg { 74 struct cbc_console_arg {
73 int n; 75 int n;
74 int target; 76 int target;
75 char* dst; 77 char* dst;