| 12 | } |
| 13 | |
| 14 | void SystemService::initialize() |
| 15 | { |
| 16 | memset((char *)system_call_table, 0, sizeof(int) * MAX_SYSTEM_CALL); |
| 17 | // 代码段选择子默认是DPL=0的平坦模式代码段选择子,DPL=3,否则用户态程序无法使用该中断描述符 |
| 18 | interruptManager.setInterruptDescriptor(0x80, (uint32)asm_system_call_handler, 3); |
| 19 | } |
| 20 | |
| 21 | bool SystemService::setSystemCall(int index, int function) |
| 22 | { |
nothing calls this directly
no test coverage detected