Sysenter/Sysexit help.
Posted: Sun May 16, 2004 11:00 pm
I am having trouble getting sysexit to work, I have read the documentation from intel and i seem to be setting things up as required but when i use Sysexit i am getting a tripple fault (Not picked up by the exception handlers).
I also noticed that NASM assembles the instruction as 0x0f 0x36, where the documentation of sysexit (and Nasms) says it should be 0x0f 0x35 so i am using
db 0x0f,0x35
in place of the command (This Should Work)
following are my descriptors I think they are correct but someone might find a fault
Thanks in advance for any help.
pkd
dummy_desc:
dw 0
dw 0
db 0
db 0
db 0
db 0
kcode_desc: ;Kernel Descriptors
dw 0xffff
dw 0
db 0
db 0x9b
db 0xcf
db 0
kdata_desc:
dw 0xffff
dw 0
db 0
db 0x93
db 0xcf
db 0
acode_desc: ;App Descriptors
dw 0xffff
dw 0
db 0
db 0xfb
db 0xcf
db 0
adata_desc:
dw 0xffff
dw 0
db 0
db 0xf3
db 0xcf
db 0
I also noticed that NASM assembles the instruction as 0x0f 0x36, where the documentation of sysexit (and Nasms) says it should be 0x0f 0x35 so i am using
db 0x0f,0x35
in place of the command (This Should Work)
following are my descriptors I think they are correct but someone might find a fault
Thanks in advance for any help.
pkd
dummy_desc:
dw 0
dw 0
db 0
db 0
db 0
db 0
kcode_desc: ;Kernel Descriptors
dw 0xffff
dw 0
db 0
db 0x9b
db 0xcf
db 0
kdata_desc:
dw 0xffff
dw 0
db 0
db 0x93
db 0xcf
db 0
acode_desc: ;App Descriptors
dw 0xffff
dw 0
db 0
db 0xfb
db 0xcf
db 0
adata_desc:
dw 0xffff
dw 0
db 0
db 0xf3
db 0xcf
db 0