]>
Commit | Line | Data |
---|---|---|
01289ec3 HL |
1 | /** @file\r |
2 | Default exception handler\r | |
3 | \r | |
4 | Copyright (c) 2014, ARM Limited. All rights reserved.\r | |
5 | \r | |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD\r | |
8 | License which accompanies this distribution. The full text of the license may\r | |
9 | be found at http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #include <Base.h>\r | |
17 | #include <Library/BaseLib.h>\r | |
18 | #include <Library/PrintLib.h>\r | |
19 | #include <Library/ArmDisassemblerLib.h>\r | |
20 | \r | |
21 | /**\r | |
22 | Place a disassembly of of **OpCodePtr into buffer, and update OpCodePtr to\r | |
23 | point to next instruction.\r | |
24 | \r | |
25 | @param OpCodePtrPtr Pointer to pointer of instruction to disassemble.\r | |
26 | @param Thumb TRUE for Thumb(2), FALSE for ARM instruction stream\r | |
27 | @param Extended TRUE dump hex for instruction too.\r | |
28 | @param ItBlock Size of IT Block\r | |
29 | @param Buf Buffer to sprintf disassembly into.\r | |
30 | @param Size Size of Buf in bytes.\r | |
31 | \r | |
32 | **/\r | |
33 | VOID\r | |
34 | DisassembleInstruction (\r | |
35 | IN UINT8 **OpCodePtr,\r | |
36 | IN BOOLEAN Thumb,\r | |
37 | IN BOOLEAN Extended,\r | |
38 | IN OUT UINT32 *ItBlock,\r | |
39 | OUT CHAR8 *Buf,\r | |
40 | OUT UINTN Size\r | |
41 | )\r | |
42 | {\r | |
43 | // Not yet supported for AArch64.\r | |
44 | // Put error in the buffer as we have no return code and the buffer may be\r | |
45 | // printed directly so needs a '\0'.\r | |
46 | AsciiSPrint (Buf, Size, "AArch64 not supported");\r | |
47 | return;\r | |
48 | }\r |