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