MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / _start

Function _start

kernel/tests/stack_overflow.rs:8–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7#[no_mangle]
8pub extern "C" fn _start() -> ! {
9 serial_print!("stack_overflow::stack_overflow...\t");
10
11 blog_os::gdt::init();
12 init_test_idt();
13
14 // trigger a stack overflow
15 stack_overflow();
16
17 panic!("Execution continued after stack overflow");
18}
19
20#[allow(unconditional_recursion)]
21fn stack_overflow() {

Callers

nothing calls this directly

Calls 3

init_test_idtFunction · 0.85
stack_overflowFunction · 0.85
initFunction · 0.50

Tested by

no test coverage detected