diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-02 04:34:19 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-02 04:34:19 +0000 |
commit | 778449055feae94c3db27965730a366d7c806122 (patch) | |
tree | f5ecbc5fb3c808cc890116ca92e3f354eb13ac1b /BeagleBoardPkg | |
parent | 5ee9264acc861940b79497f17d7e49b5c8af3731 (diff) | |
download | edk2-platforms-778449055feae94c3db27965730a366d7c806122.tar.xz |
Fix some disasm issues
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9908 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BeagleBoardPkg')
-rw-r--r-- | BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c b/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c index 6ce3f70f6d..2623eb3bbe 100644 --- a/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c +++ b/BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c @@ -47,7 +47,7 @@ EblDisassembler ( IN CHAR8 **Argv
)
{
- UINT8 *Ptr;
+ UINT8 *Ptr, *CurrentAddress;
UINT32 Address;
UINT32 Count;
CHAR8 Buffer[80];
@@ -57,13 +57,15 @@ EblDisassembler ( }
Address = AsciiStrHexToUintn (Argv[1]);
- Count = (Argc > 2) ? (UINT32)AsciiStrHexToUintn (Argv[2]) : 10;
+ Count = (Argc > 2) ? (UINT32)AsciiStrHexToUintn (Argv[2]) : 20;
Ptr = (UINT8 *)(UINTN)Address;
- while (Count-- > 0) {
+ do {
+ CurrentAddress = Ptr;
DisassembleInstruction (&Ptr, TRUE, TRUE, Buffer, sizeof (Buffer));
- AsciiPrint ("0x%08x: %a", Address, Buffer);
- }
+ AsciiPrint ("0x%08x: %a\n", CurrentAddress, Buffer);
+ } while (Count-- > 0);
+
return EFI_SUCCESS;
}
|