X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkModulePkg%2FUniversal%2FDebugSupport%2FDxe%2FIa32%2FAsmFuncs.asm;h=1741ce83c07d1a1355c4c2dc8e1394b44c00a963;hp=89c9f83176076b1773f754e4471844dd70f88790;hb=c91eaa3d55d88598baaa979097a31cb1001ecc0d;hpb=511710d68f477e0210ae1830769e5d0cde4ea36a diff --git a/EdkModulePkg/Universal/DebugSupport/Dxe/Ia32/AsmFuncs.asm b/EdkModulePkg/Universal/DebugSupport/Dxe/Ia32/AsmFuncs.asm index 89c9f83176..1741ce83c0 100644 --- a/EdkModulePkg/Universal/DebugSupport/Dxe/Ia32/AsmFuncs.asm +++ b/EdkModulePkg/Universal/DebugSupport/Dxe/Ia32/AsmFuncs.asm @@ -189,7 +189,8 @@ Vect2Desc PROC C PUBLIC DestPtr:DWORD, Vector:DWORD mov eax, Vector mov ecx, DestPtr mov word ptr [ecx], ax ; write bits 15..0 of offset - mov word ptr [ecx+2], 20h ; SYS_CODE_SEL from GDT + mov dx, cs + mov word ptr [ecx+2], dx ; SYS_CODE_SEL from GDT mov word ptr [ecx+4], 0e00h OR 8000h ; type = 386 interrupt gate, present shr eax, 16 mov word ptr [ecx+6], ax ; write bits 31..16 of offset