儲存庫 vbox 的更動 67350
- 時間撮記:
- 2017-6-12 下午05:42:14 (7 年 以前)
- 位置:
- trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxDebugLib
- 檔案:
-
- 修改 5 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.c
r62500 r67350 29 29 *******************************************************************************/ 30 30 #include <Base.h> 31 #include <Library/BaseLib.h> 31 32 #include <Library/PrintLib.h> 32 33 #include <Library/DebugLib.h> … … 38 39 #include <Library/UefiBootServicesTableLib.h> 39 40 #include "DevEFI.h" 41 #include "iprt/asm.h" 40 42 41 43 #if 0 … … 50 52 VA_LIST va; 51 53 UINTN cch; 52 RTCCUINTREG SavedFlags;54 BOOLEAN InterruptState; 53 55 54 56 /* No pool noise, please. */ … … 67 69 szBuf[cch] = '\0'; 68 70 71 InterruptState = SaveAndDisableInterrupts(); 72 69 73 /* Output the log string. */ 70 SavedFlags = ASMIntDisableFlags();71 72 74 VBoxPrintString("dbg/"); 73 75 VBoxPrintHex(ErrorLevel, sizeof(ErrorLevel)); … … 76 78 VBoxPrintChar('\n'); 77 79 78 ASMSetFlags(SavedFlags);80 SetInterruptState(InterruptState); 79 81 } 80 82 … … 91 93 CHAR8 szBuf[384]; 92 94 VA_LIST va; 93 RTCCUINTREG SavedFlags;95 BOOLEAN InterruptState; 94 96 95 97 /* Format it. */ … … 99 101 szBuf[sizeof(szBuf) - 1] = '\0'; 100 102 103 InterruptState = SaveAndDisableInterrupts(); 104 101 105 /* Output the log string. */ 102 SavedFlags = ASMIntDisableFlags();103 104 106 VBoxPrintString(szBuf); 105 107 VBoxPrintChar('\n'); 106 108 107 ASMSetFlags(SavedFlags);109 SetInterruptState(InterruptState); 108 110 } 109 111 … … 157 159 DebugAssert(IN CONST CHAR8 *FileName, IN UINTN LineNumber, IN CONST CHAR8 *Description) 158 160 { 159 RTCCUINTREG SavedFlags = ASMIntDisableFlags();161 BOOLEAN InterruptState = SaveAndDisableInterrupts(); 160 162 161 163 ASMOutU8(EFI_PANIC_PORT, EFI_PANIC_CMD_START_MSG); … … 169 171 ASMOutU8(EFI_PANIC_PORT, EFI_PANIC_CMD_END_MSG); 170 172 171 ASMSetFlags(SavedFlags);173 SetInterruptState(InterruptState); 172 174 } 173 175 -
trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxDebugLib/VBoxPrintChar.c
r62500 r67350 30 30 #include "VBoxDebugLib.h" 31 31 #include "DevEFI.h" 32 #include "iprt/asm.h" 32 33 33 34 -
trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxDebugLib/VBoxPrintHex.c
r62500 r67350 32 32 #include "VBoxDebugLib.h" 33 33 #include "DevEFI.h" 34 #include "iprt/asm.h" 34 35 35 36 -
trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxDebugLib/VBoxPrintHexDump.c
r62500 r67350 30 30 * Header Files * 31 31 *******************************************************************************/ 32 #include <ctype.h> 32 33 #include "VBoxDebugLib.h" 33 34 #include "DevEFI.h" 34 #include <iprt/ctype.h>35 #include "iprt/asm.h" 35 36 36 37 … … 80 81 cchPrinted += VBoxPrintString(" "); 81 82 for (i = 0; i < 16 && i < cb; i++) 82 cchPrinted += vboxPrintHexDumpChar(pb[i] == ' ' 83 ? ' ' 84 : RT_C_IS_GRAPH(pb[i]) 83 cchPrinted += vboxPrintHexDumpChar(isprint(pb[i]) 85 84 ? pb[i] 86 85 : '.'); -
trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxDebugLib/VBoxPrintString.c
r62500 r67350 31 31 #include "VBoxDebugLib.h" 32 32 #include "DevEFI.h" 33 #include "iprt/asm.h" 33 34 34 35
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器