Page 1 of 1

GPF when setting data segments

Posted: Sun Jan 11, 2009 6:57 am
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.

Re: GPF when setting data segments

Posted: Sun Jan 11, 2009 1:40 pm
by xyzzy
Do you have the code available anywhere?

Re: GPF when setting data segments

Posted: Sun Jan 11, 2009 2:02 pm
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!