comparison src/proc.h @ 26:a146855e16eb

bugfix
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Thu, 17 Jan 2019 19:43:22 +0900
parents a5ccbc210ff8
children 1a64b5645cdd
comparison
equal deleted inserted replaced
25:a5ccbc210ff8 26:a146855e16eb
1 #include "typedefData.h"
1 #ifndef PROC_INCLUDE_ 2 #ifndef PROC_INCLUDE_
2 #define PROC_INCLUDE_ 3 #define PROC_INCLUDE_
3 4
4 // Per-CPU state, now we only support one CPU 5 // Per-CPU state, now we only support one CPU
5 struct cpu { 6 struct cpu {
68 struct inode* cwd; // Current directory 69 struct inode* cwd; // Current directory
69 char name[16]; // Process name (debugging) 70 char name[16]; // Process name (debugging)
70 union cbc_arg { 71 union cbc_arg {
71 struct cbc_console_arg { 72 struct cbc_console_arg {
72 int n; 73 int n;
74 int target;
73 char* dst; 75 char* dst;
74 struct inode *ip; 76 struct inode *ip;
75 __code (*next)(int ret); 77 __code (*next)(int ret);
76 } 78 } cbc_console_arg;
77 } cbc_arg; 79 } cbc_arg;
78 __code (*cbc_next)(); 80 __code (*cbc_next)();
79 struct spinlock *lk 81 struct spinlock *lk
80 }; 82 };
81 83