00001321150e[CPU0 ] interrupt(long mode): unsupported gate type 6
00001321150e[CPU0 ] interrupt(long mode): gate descriptor is not valid sys seg
00001321150e[CPU0 ] exception(): 3rd (13) exception with no resolution, shutdown status is 00h, resetting
i've set the GDT msr STAR and have the LSTAR according to the folowing code:
Code: Select all
gdt[0].raw[0] = 0x0000000000000000ull; //- null selector.
gdt[1].raw[0] = 0x0020980000000000ull; //- code64 selector ring 0
gdt[2].raw[0] = 0x0000080000000000ull; //- data64 selector.
gdt[3].raw[0] = 0x00209E0000000000ull; //- code64 selector ring 3.
asm volatile("lgdt %0" :: "m" (pgdt));
asm volatile("movl $lbl, %0;ljmp *%1; lbl:" : : "m" (myjmp.addr), "m" (myjmp));
asm volatile("movq $0x00000000C0000081, %rcx;"
"movq $0x0008000800000000, %rax;"
"wrmsr; "
"movq $0x00000000C0000082, %rcx;"
"movq $0x0000000000008000, %rax;"
"wrmsr; "
);
asm volatile("syscall");
any pointers anyone?