Descriptor Tables Mangled

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
shadrak

Descriptor Tables Mangled

Post by shadrak »

My bootsector has a gdt that works fine. When i get into pmode im trying to load a new one with structs and what not. Anyway, I store the previous gdt and print out the address, which surprisingly... is 0, thats the 1st problem (no i didnt load it at 0). 2cnd When I load my 2cnd GDT, and store the result the address of the table is seriously magled. Its like shifted left 16 bits and messed up. This is in bochs and the real CPU. Whats the problem?
Post Reply