ISR Code
Posted: Wed Aug 27, 2003 10:58 pm
Hi,
I was looking through one of the sample kernel's from Bona Fide and was wondering about the code in the ISR's, this is the code
Is it neccessary to load the data segments inside each ISR?
All other samples I have seen do not do this so I was wondering why it is done here and if it is needed.
cheers.
I was looking through one of the sample kernel's from Bona Fide and was wondering about the code in the ISR's, this is the code
Code: Select all
pusha
push ds
push es
push fs
push gs
mov eax,0x10 ; Data segment
mov ds,eax
mov es,eax
cld
call _int_00 ; Divide by Zero #DE
pop gs
pop fs
pop es
pop ds
popa
iret
All other samples I have seen do not do this so I was wondering why it is done here and if it is needed.
cheers.