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

Function setup_kernel

lab4/src/6/src/kernel/setup.cpp:7–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5InterruptManager interruptManager;
6
7extern "C" void setup_kernel()
8{
9 // 中断处理部件
10 interruptManager.initialize();
11
12 // 尝试触发除0错误
13 int a = 1 / 0;
14
15 // 死循环
16 asm_halt();
17}

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.45

Tested by

no test coverage detected