Re: Ok, what's wrong?
Posted: Mon May 21, 2012 8:55 am
Oh, sorry guys!
But I wonder I had done it but my kernel was executing, now I am confused!!
Anyway thanks I have removed the mov cs thing but it works still.
Sorry for the mistake of mov cs,0x08One thing:
Sometimes I used to get the same error "interrupt(): gate descriptor is not valid sys seg" and GPF
It got fixed in my kernel after I did
Quote:
mov ax,0x08
mov cs,ax
mov ax,0x10
mov ds ,ax
mov es,ax
mov gs,ax
mov fs,ax
The same way have you initialized the segments before using other bootloader stuff.
For example: mov ax, 0x7C00 ;Depends where you want it to be
mov ,etc,etc
But I wonder I had done it but my kernel was executing, now I am confused!!
Anyway thanks I have removed the mov cs thing but it works still.