-
|
This is a silly question, but I'm curious to know. On what source line in which file is interrupt vector 0x80 setup to point to the syscall function? I've been digging through the sources for about an hour and even asked Gemini to find it, but no luck. I don't need to know this, but since ELKS is much smaller then the modern kernels, I've been reading it's sources to learn about operating systems in general, and this one piece of the puzzle has eluded me. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Just follow the boot flow ( |
Beta Was this translation helpful? Give feedback.
-
|
Thanks! For some reason I thought of IRQ handlers only in the context of hardware signals and didn't follow that function. |
Beta Was this translation helpful? Give feedback.
Just follow the boot flow (
arch/i86/boot/crt0.S→ start_kernel → far_start_kernel → kernel_init → irq_init)https://github.com/ghaerr/elks/blob/master/elks/arch/i86/kernel/irq.c#L123