comparison src/defs.h @ 37:fb3e5a2f76c1

fix
author mir3636
date Fri, 22 Feb 2019 22:36:17 +0900
parents 7a63dacab7f8
children
comparison
equal deleted inserted replaced
36:d4e5846ddb48 37:fb3e5a2f76c1
119 119
120 // pipe.c 120 // pipe.c
121 int pipealloc(struct file**, struct file**); 121 int pipealloc(struct file**, struct file**);
122 void pipeclose(struct pipe*, int); 122 void pipeclose(struct pipe*, int);
123 int piperead(struct pipe*, char*, int); 123 int piperead(struct pipe*, char*, int);
124 __code cbc_piperead(struct pipe*, char*, int, __code (*)(int));
124 int pipewrite(struct pipe*, char*, int); 125 int pipewrite(struct pipe*, char*, int);
125 126
126 //PAGEBREAK: 16 127 //PAGEBREAK: 16
127 // proc.c 128 // proc.c
128 struct proc* copyproc(struct proc*); 129 struct proc* copyproc(struct proc*);
136 void sched(void); 137 void sched(void);
137 __code cbc_sleep(void*, struct spinlock*, __code(*next1)()); 138 __code cbc_sleep(void*, struct spinlock*, __code(*next1)());
138 void sleep(void*, struct spinlock*); 139 void sleep(void*, struct spinlock*);
139 void userinit(void); 140 void userinit(void);
140 int wait(void); 141 int wait(void);
142 __code cbc_wakeup(void*, __code(*next1)());
141 void wakeup(void*); 143 void wakeup(void*);
142 void yield(void); 144 void yield(void);
143 145
144 // swtch.S 146 // swtch.S
145 void swtch(struct context**, struct context*); 147 void swtch(struct context**, struct context*);