GPF when setting data segments

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.
Post Reply
User avatar
xDDunce
Member
Member
Posts: 173
Joined: Tue Aug 12, 2008 4:04 pm
Contact:

GPF when setting data segments

Post by xDDunce »

ok, so i've started updating my source code to C++ now and i think it's going quite well, but i keep getting a General Protection Fault after loading the GDT. bochs complains about the instruction

Code: Select all

mov ss, ax : 8ED0
probably an easy fix that i missed (as always :lol: )

all help is very much appreciated!

James.
xyzzy
Member
Member
Posts: 391
Joined: Wed Jul 25, 2007 8:45 am
Libera.chat IRC: aejsmith
Location: London, UK
Contact:

Re: GPF when setting data segments

Post by xyzzy »

Do you have the code available anywhere?
User avatar
xDDunce
Member
Member
Posts: 173
Joined: Tue Aug 12, 2008 4:04 pm
Contact:

Re: GPF when setting data segments

Post by xDDunce »

ah, sorry. i made a very basic mistake... my GDT was too small to hold both kernel-mode and user-mode entries which i added along with my IDT code... thanks for making me check my code again though! :lol: i guess i gave up too early... but i have started work on my new project :D so it's not all bad :lol:

thanks for trying to help anyway!
Post Reply