Nabend zusammen,
ich habe derzeit ein komisches Problem.
Meine GDT funktioniert nur, wenn ich die GDT an die Page-Size ausrichte.
Habe alle GDT-Eintraege ueberprueft und die sind korrekt.
Wenn ich die GDT an 8-Byte ausrichte (laut Intel die optimale Position), bekomme ich einen GPF.
Woran kann das liegen?
Hier mal die Eintraege aus der GDT:
{{value = 0, mapping = {segment0 = 0, base0 = 0, accessed = 0,
segment_r_rw = 0, direction = 0, exec = 0, segment = 0, privilege = 0,
present = 0, segment1 = 0, zero = 0, size = 0, granularity = 0, base1 = 0}},
{value = 58434644969848831, mapping = {segment0 = 65535, base0 = 0,
accessed = 0, segment_r_rw = 1, direction = 0, exec = 1, segment = 1,
privilege = 0, present = 1, segment1 = 15, zero = 0, size = 1,
granularity = 1, base1 = 0}}, {value = 58425848876826623, mapping = {
segment0 = 65535, base0 = 0, accessed = 0, segment_r_rw = 1, direction = 0,
exec = 0, segment = 1, privilege = 0, present = 1, segment1 = 15, zero = 0,
size = 1, granularity = 1, base1 = 0}}, {value = 58540198086115327,
mapping = {segment0 = 65535, base0 = 0, accessed = 0, segment_r_rw = 1,
direction = 0, exec = 1, segment = 1, privilege = 3, present = 1,
segment1 = 15, zero = 0, size = 1, granularity = 1, base1 = 0}}, {
value = 58531401993093119, mapping = {segment0 = 65535, base0 = 0,
accessed = 0, segment_r_rw = 1, direction = 0, exec = 0, segment = 1,
privilege = 3, present = 1, segment1 = 15, zero = 0, size = 1,
granularity = 1, base1 = 0}}}
Danke.
Gruss,
rizor