| 78 | process_t* CreateELFProcess(void* elf, int argc = 0, char** argv = nullptr, int envc = 0, char** envp = nullptr); |
| 79 | |
| 80 | inline static process_t* GetCurrentProcess(){ |
| 81 | asm("cli"); |
| 82 | CPU* cpu = GetCPULocal(); |
| 83 | |
| 84 | process_t* ret = nullptr; |
| 85 | |
| 86 | if(cpu->currentThread) |
| 87 | ret = cpu->currentThread->parent; |
| 88 | |
| 89 | asm("sti"); |
| 90 | return ret; |
| 91 | } |
| 92 | |
| 93 | Handle& RegisterHandle(process_t* proc, FancyRefPtr<KernelObject> ko); |
| 94 | long FindHandle(process_t* proc, handle_id_t id, Handle** ref); |
no test coverage detected