From 85f084912381e3c5637070babfd26e9f1b0664b8 Mon Sep 17 00:00:00 2001 From: kieron Date: Tue, 16 May 2017 12:54:51 +0000 Subject: [PATCH] GDT Fixes? git-svn-id: https://spexeah.com:8443/svn/Asuro@23 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c --- src/gdt.pas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gdt.pas b/src/gdt.pas index 9bc8e3ef..d9084cc6 100644 --- a/src/gdt.pas +++ b/src/gdt.pas @@ -45,10 +45,9 @@ begin end else begin limit := limit SHR 12; end; + descriptor[6] := $C0; //2 <-- Will be overwritten by 3; end; - descriptor[6] := $C0; //2 <-- Will be overwritten by 3; - descriptor[0] := limit and $FF; descriptor[1] := (limit shr 8) and $FF; descriptor[6] := descriptor[6] or ((limit shr 16) and $F); //3 <-- has now overwritten both $C0 and $40 is now equal to limit or'd with limit shifted right 16 bits and constant $0F