]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/DebugSupport/Dxe/ia32/AsmFuncs.S
Fix up the Stub Size Calculation which was not initially ported properly.
[mirror_edk2.git] / EdkModulePkg / Universal / DebugSupport / Dxe / ia32 / AsmFuncs.S
index 286ac059a7a614bbbffd8cd6fd3a0b5167ebd4dd..131464a3e8a947c42b8933cbec401a6318e10278 100644 (file)
@@ -1,15 +1,15 @@
-;******************************************************************************
-;*
-;* Copyright (c) 2006, 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                                            
-;*                                                                                           
-;* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
-;* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
-;*
-;******************************************************************************
+#******************************************************************************
+#*
+#* Copyright (c) 2006, 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                                            
+#*                                                                                           
+#* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
+#* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+#*
+#******************************************************************************
 
 .global _OrigVector
 .global _InterruptEntryStub
@@ -23,8 +23,7 @@ _ExtraPush:      .long   0x33333333 # ?
 _ExceptData:     .long   0x44444444 # ?
 _Eflags:         .long   0x55555555 # ?
 _OrigVector:     .long   0x66666666 # ?
-_StubSize:       .long   0x0
-# StubSize:       .long   InterruptEntryStubEnd - InterruptEntryStub
+_StubSize:       .long   _InterruptEntryStubEnd - _InterruptEntryStub
 
 .global _FxStorSupport
 _FxStorSupport:
@@ -84,6 +83,8 @@ _InterruptEntryStub:
         mov    $0x0,%esp
         push   $0x0
         jmp    _CommonIdtEntry
+.global _InterruptEntryStubEnd
+_InterruptEntryStubEnd:
 
 .global _CommonIdtEntry
 _CommonIdtEntry: