Ok, what's wrong?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
LindusSystem
Member
Member
Posts: 63
Joined: Sat Apr 28, 2012 9:41 am
Location: Earth -> Asia

Re: Ok, what's wrong?

Post by LindusSystem »

Oh, sorry guys!
One 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
Sorry for the mistake of mov cs,0x08
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.
Anyone has a idea of making a ntfs bootsector?if yes PM me , plz.
Mikemk
Member
Member
Posts: 409
Joined: Sat Oct 22, 2011 12:27 pm

Re: Ok, what's wrong?

Post by Mikemk »

Then, I am a "Blind in the Darkness Programmer"
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: Ok, what's wrong?

Post by VolTeK »

berkus wrote:Exactly.
+1
Locked