-;******************************************************************************\r
-;*\r
-;* Copyright (c) 2006, Intel Corporation \r
-;* All rights reserved. This program and the accompanying materials \r
-;* are licensed and made available under the terms and conditions of the BSD License \r
-;* which accompanies this distribution. The full text of the license may be found at \r
-;* http://opensource.org/licenses/bsd-license.php \r
-;* \r
-;* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-;* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-;*\r
-;******************************************************************************\r
+;/** @file\r
+; Low leve IA32 specific debug support functions.\r
+;\r
+; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; This program and the accompanying materials\r
+; are licensed and made available under the terms and conditions of the BSD License\r
+; which accompanies this distribution. The full text of the license may be found at\r
+; http://opensource.org/licenses/bsd-license.php\r
+;\r
+; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+;\r
+;**/\r
\r
.586p\r
.MODEL FLAT, C\r
align 16\r
DebugStackEnd db "DbgStkEnd >>>>>>" ;; 16 byte long string - must be 16 bytes to preserve alignment\r
dd 1ffdh dup (000000000h) ;; 32K should be enough stack\r
- ;; This allocation is coocked to insure \r
+ ;; This allocation is coocked to insure\r
;; that the the buffer for the FXSTORE instruction\r
;; will be 16 byte aligned also.\r
;;\r
FxStorSupport ENDP\r
\r
\r
-;------------------------------------------------------------------------------\r
-; DESCRIPTOR *\r
-; GetIdtr (\r
-; void\r
-; )\r
-;\r
-; Abstract: Returns physical address of IDTR\r
-;\r
-GetIdtr PROC C PUBLIC\r
- LOCAL IdtrBuf:FWORD\r
-\r
- sidt IdtrBuf\r
- mov eax, DWORD PTR IdtrBuf + 2\r
- ret\r
-GetIdtr ENDP\r
-\r
-\r
-;------------------------------------------------------------------------------\r
-; BOOLEAN\r
-; WriteInterruptFlag (\r
-; BOOLEAN NewState\r
-; )\r
-;\r
-; Abstract: Programs interrupt flag to the requested state and returns previous\r
-; state.\r
-;\r
-WriteInterruptFlag PROC C PUBLIC State:DWORD\r
-\r
- pushfd\r
- pop eax\r
- and eax, 200h\r
- shr eax, 9\r
- mov ecx, State\r
- .IF cl == 0\r
- cli\r
- .ELSE\r
- sti\r
- .ENDIF\r
- ret\r
-\r
-WriteInterruptFlag ENDP\r
-\r
-\r
\r
;------------------------------------------------------------------------------\r
; void\r