]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Library/ArmDisassemblerLib/Aarch64Disassembler.c
ArmPkg: Apply uncrustify changes
[mirror_edk2.git] / ArmPkg / Library / ArmDisassemblerLib / Aarch64Disassembler.c
CommitLineData
01289ec3
HL
1/** @file\r
2 Default exception handler\r
3\r
4 Copyright (c) 2014, ARM Limited. All rights reserved.\r
5\r
4059386c 6 SPDX-License-Identifier: BSD-2-Clause-Patent\r
01289ec3
HL
7\r
8**/\r
9\r
10#include <Base.h>\r
11#include <Library/BaseLib.h>\r
12#include <Library/PrintLib.h>\r
13#include <Library/ArmDisassemblerLib.h>\r
14\r
15/**\r
ff5fef14 16 Place a disassembly of **OpCodePtr into buffer, and update OpCodePtr to\r
01289ec3
HL
17 point to next instruction.\r
18\r
19 @param OpCodePtrPtr Pointer to pointer of instruction to disassemble.\r
20 @param Thumb TRUE for Thumb(2), FALSE for ARM instruction stream\r
21 @param Extended TRUE dump hex for instruction too.\r
22 @param ItBlock Size of IT Block\r
23 @param Buf Buffer to sprintf disassembly into.\r
24 @param Size Size of Buf in bytes.\r
25\r
26**/\r
27VOID\r
28DisassembleInstruction (\r
429309e0
MK
29 IN UINT8 **OpCodePtr,\r
30 IN BOOLEAN Thumb,\r
31 IN BOOLEAN Extended,\r
32 IN OUT UINT32 *ItBlock,\r
33 OUT CHAR8 *Buf,\r
34 OUT UINTN Size\r
01289ec3
HL
35 )\r
36{\r
37 // Not yet supported for AArch64.\r
38 // Put error in the buffer as we have no return code and the buffer may be\r
39 // printed directly so needs a '\0'.\r
40 AsciiSPrint (Buf, Size, "AArch64 not supported");\r
41 return;\r
42}\r