Hi, I have written the interrupt handler followed the instruction at jamesmolloy.co.uk.
But I always got this information
[CPU0] iret: retrun CS selector null
from bochs.
Which case could cause the cs selector to be null?
Interrupt Handler.
Re: Interrupt Handler.
Make sure that you remove the correct number of arguments from the stack before the iret instruction is executed.
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].
Re: Interrupt Handler.
cs is taken from the stack, so it pops 0 of the stack where it expects a valid cs. So either your stack pointer is messed up, or, like Korona pointed out, you have some pushes or pops too much somewhere.huxuelei wrote:Which case could cause the cs selector to be null?
JAL

