Now i have been able to create the gdt's and when i change to pmode, will a short JMP flush the instruciton prefetch queue? here is a sample of my code and the gdt and gdtr content,
mov ax,07c00h
mov ds,ax
lgdt [ds:descr]
;switch to pmode by setting bit 0 of CR0
;after switching to pmode
jmp pmode; when i use JMP 0:7c00h+pmode ir reboots, the 1st 0 is code gdt
pmode:
;here when i try to write to RAM, it will reboot
mov ax,8h;the data segment
mov ds,ax;it reboots here
mov ax,0f44h
mov [0h],ax
descr:
db 0ffh,0ffh,00h,00h,07ch,gdt
gdt:
db 0ffh,0ffh,0,0,0,8a,0cfh,0;code segment
db 0ff,0ffh,0,0,0,82,0cfh,9;data segment
whta am i suppose to do to make my pmode correct, i mean be able to use the descriptors without rebooting? writing to the RAM? pleeeeeeeeeeeeeeeeaaaaaaaaaaaase help. Sam