New
(id: usize)
| 191 | |
| 192 | // New |
| 193 | pub fn new(id: usize) -> Self |
| 194 | { |
| 195 | let isf = InterruptStackFrameValue |
| 196 | { |
| 197 | code_segment: 0, |
| 198 | cpu_flags: 0, |
| 199 | instruction_pointer: VirtAddr::new(0), |
| 200 | stack_pointer: VirtAddr::new(0), |
| 201 | stack_segment: 0, |
| 202 | }; |
| 203 | |
| 204 | Self |
| 205 | { |
| 206 | id, |
| 207 | code_address: 0, |
| 208 | code_size: 0, |
| 209 | entrypt: 0, |
| 210 | sf: isf, |
| 211 | reg: Reg::default(), |
| 212 | data: ProcData::new("/", None), |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | |
| 217 | // Spawn |