summaryrefslogtreecommitdiff
path: root/BeagleBoardPkg/Library
diff options
context:
space:
mode:
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-05 06:50:09 +0000
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-05 06:50:09 +0000
commitf3198cba84f56f85281b87c4e9bf96e77a934f16 (patch)
tree4c36f2be7f83d05959813b5c051df01da3f1ed9f /BeagleBoardPkg/Library
parent3b9be4164b8714a4d866e822cfacb1ea6da6ef7b (diff)
downloadedk2-platforms-f3198cba84f56f85281b87c4e9bf96e77a934f16.tar.xz
Update input of disasmembler to support IfThen construct. Add prototype dos script to build BeagleBoard.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9936 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BeagleBoardPkg/Library')
-rw-r--r--BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c b/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c
index 2623eb3bbe..c69b28904b 100644
--- a/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c
+++ b/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c
@@ -51,6 +51,7 @@ EblDisassembler (
UINT32 Address;
UINT32 Count;
CHAR8 Buffer[80];
+ UINT32 ItBlock;
if (Argc < 2) {
return EFI_INVALID_PARAMETER;
@@ -60,9 +61,10 @@ EblDisassembler (
Count = (Argc > 2) ? (UINT32)AsciiStrHexToUintn (Argv[2]) : 20;
Ptr = (UINT8 *)(UINTN)Address;
+ ItBlock = 0;
do {
CurrentAddress = Ptr;
- DisassembleInstruction (&Ptr, TRUE, TRUE, Buffer, sizeof (Buffer));
+ DisassembleInstruction (&Ptr, TRUE, TRUE, &ItBlock, Buffer, sizeof (Buffer));
AsciiPrint ("0x%08x: %a\n", CurrentAddress, Buffer);
} while (Count-- > 0);