MCPcopy Create free account
hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-1 / setSystemCall

Method setSystemCall

lab8/src/7/src/kernel/syscall.cpp:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21bool SystemService::setSystemCall(int index, int function)
22{
23 system_call_table[index] = function;
24 return true;
25}
26
27int write(const char *str) {
28 return asm_system_call(1, (int)str);

Callers 1

setup_kernelFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected