]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/DebugSupport/Dxe/Ia32/AsmFuncs.asm
I fixed following bugs in EDKII.
[mirror_edk2.git] / EdkModulePkg / Universal / DebugSupport / Dxe / Ia32 / AsmFuncs.asm
index 89c9f83176076b1773f754e4471844dd70f88790..1741ce83c07d1a1355c4c2dc8e1394b44c00a963 100644 (file)
@@ -189,7 +189,8 @@ Vect2Desc       PROC    C PUBLIC DestPtr:DWORD, Vector:DWORD
                 mov     eax, Vector\r
                 mov     ecx, DestPtr\r
                 mov     word ptr [ecx], ax                  ; write bits 15..0 of offset\r
-                mov     word ptr [ecx+2], 20h               ; SYS_CODE_SEL from GDT\r
+                mov     dx, cs\r
+                mov     word ptr [ecx+2], dx                ; SYS_CODE_SEL from GDT\r
                 mov     word ptr [ecx+4], 0e00h OR 8000h    ; type = 386 interrupt gate, present\r
                 shr     eax, 16\r
                 mov     word ptr [ecx+6], ax                ; write bits 31..16 of offset\r