| 240 | } |
| 241 | |
| 242 | void Yield(){ |
| 243 | CPU* cpu = GetCPULocal(); |
| 244 | |
| 245 | if(cpu->currentThread) { |
| 246 | cpu->currentThread->timeSlice = 0; |
| 247 | } |
| 248 | asm("int $0xFD"); // Send schedule IPI to self |
| 249 | } |
| 250 | |
| 251 | process_t* CreateProcess(void* entry) { |
| 252 | process_t* proc = InitializeProcessStructure(); |
no test coverage detected