Page 1 of 1

Descriptor Tables Mangled

Posted: Fri Apr 18, 2003 11:00 pm
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?