Can anyone tell me what's wrong with my GDT?
gdt: dw 0x0000, 0x0000, 0x0000, 0x0000
sys_code: dw 0FFh, 0FFh, 0h, 0h, 0h, 10011000b, 01001111b, 0h
sys_data: db 0FFh, 0FFh, 0h, 0h, 0h, 10010010b, 01001111b, 0h
gdt_end:
I'm sure the problem is the gdt because i used another one and worked correctly, but when i use the mine crashes.
I'm using Virtual PC 2007 as emulator
Thanks
my gdt won't work
- matias_beretta
- Member
- Posts: 101
- Joined: Mon Feb 26, 2007 3:39 pm
my gdt won't work
MatÃas Beretta
Re: my gdt won't work
I think there should be a db instead of a dw.matias_beretta wrote: sys_code: dw 0FFh, 0FFh, 0h, 0h, 0h, 10011000b, 01001111b, 0h