X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FDebugSupportDxe%2FX64%2FPlDebugSupportX64.c;h=fa8869d287363d3d3c315c5d24e66c2c57f6c445;hb=fea55a166188d251e1f60ab2ba58c2dccdd11fb2;hp=4d13ca38332ca27d9f6183bc796f71a8c9826c79;hpb=6d3ea23f1183f3378a53e44d34c0a27aebec7d9a;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/DebugSupportDxe/X64/PlDebugSupportX64.c b/MdeModulePkg/Universal/DebugSupportDxe/X64/PlDebugSupportX64.c index 4d13ca3833..fa8869d287 100644 --- a/MdeModulePkg/Universal/DebugSupportDxe/X64/PlDebugSupportX64.c +++ b/MdeModulePkg/Universal/DebugSupportDxe/X64/PlDebugSupportX64.c @@ -1,8 +1,8 @@ /** @file X64 specific functions to support Debug Support protocol. -Copyright (c) 2008 - 2009, Intel Corporation -All rights reserved. This program and the accompanying materials +Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -36,9 +36,9 @@ GetInterruptHandleFromIdt ( // InterruptHandle 16-31 : OffsetHigh // InterruptHandle 32-63 : OffsetUpper // - ((UINT16 *) &InterruptHandle)[0] = (UINT16) IdtGateDecriptor->Bits.OffsetLow; - ((UINT16 *) &InterruptHandle)[1] = (UINT16) IdtGateDecriptor->Bits.OffsetHigh; - ((UINT32 *) &InterruptHandle)[1] = (UINT32) IdtGateDecriptor->Bits.OffsetUpper; + InterruptHandle = ((UINTN) IdtGateDecriptor->Bits.OffsetLow) | + (((UINTN) IdtGateDecriptor->Bits.OffsetHigh) << 16) | + (((UINTN) IdtGateDecriptor->Bits.OffsetUpper) << 32) ; return InterruptHandle; } @@ -108,7 +108,7 @@ CreateEntryStub ( **/ EFI_STATUS ManageIdtEntryTable ( - VOID (EFIAPI *NewCallback)(), + CALLBACK_FUNC NewCallback, EFI_EXCEPTION_TYPE ExceptionType ) {