StartOS wrote:The GDT code alone works and doesn't crash anything.
It's the segment reloader.
I think the best course of action would be:
-either to set up a good debugging environment, if you want to figure out how to solve such problems
-or to post the code or at least the compiled binary of your kernel, if you only want to figure out what is wrong in this specific case.
onlyonemac wrote:I bet you're going to say it's got something to do with a .ORG directive. Well guess what? Neither did he give us a .ORG directive nor did he tell us where the code is being loaded, so without that information I can't give him (or you) a better answer.
Hint: Look at his second post.
The code's position is precisely known.
onlyonemac wrote:Take a look at his code before you start trying to "sell" your favourite emulator.
The most likely cause is that he got the GDT or it's loading wrong.
The easiest way to check that is in the Bochs debugger.
Assuming he have the tools to work with floppy images, of course.
So, in the end, it's about setting a functional debugging environment.