CS Address of GDt
Posted: Mon Mar 29, 2010 12:55 am
Hi,
I need help. In Tutorial 8, the section where we need to make a far jump to fix the CS address (making sure it contains the Code descriptor address)
instead of a far jump, if we do this
Would it be ok?
And is there any rule on choosing the starting address for the stack?
Thank guys
I need help. In Tutorial 8, the section where we need to make a far jump to fix the CS address (making sure it contains the Code descriptor address)
Code: Select all
cli ; clear interrupts
mov eax, cr0 ; set bit 0 in cr0--enter pmode
or eax, 1
mov cr0, eax
jmp 08h:Stage3 ; far jump to fix CS. Remember that the code selector is 0x8!
Code: Select all
mov ax, 08h
mov cs, ax
jmp Stage3
And is there any rule on choosing the starting address for the stack?
Thank guys