stack value changes inside isr_common_stub after sti
Posted: Tue Jun 02, 2020 3:36 am
I am on my way to try set up and test idt... so far so good, using bochs, I was able to debug the instructions...
but what I discovered is that (see code below) right after I turned on interrupt (sti), the stack value just changed
dramatically from previous instructions, what happened????
but what I discovered is that (see code below) right after I turned on interrupt (sti), the stack value just changed
dramatically from previous instructions, what happened????
Code: Select all
call isr_handler
pop %ebx
mov %bx, %ds
mov %bx, %es
mov %bx, %fs
mov %bx, %gs
mov %bx, %ss
popa
add 8, %esp
sti
iret