Create union for uint32 signature with SignatureAs4Char. Useful in gdb.

This commit is contained in:
jief666 2021-09-25 13:11:54 +03:00
parent f70da719e5
commit c9794ad85d
2 changed files with 11 additions and 2 deletions

View File

@ -24,7 +24,10 @@ typedef struct {
/// The common ACPI description table header. This structure prefaces most ACPI tables.
///
typedef struct {
union {
UINT32 Signature;
CHAR8 SignatureAs4Char[4];
};
UINT32 Length;
UINT8 Revision;
UINT8 Checksum;

View File

@ -154,7 +154,10 @@ class ACPI_DROP_TABLE
{
public:
ACPI_DROP_TABLE *Next;
UINT32 Signature;
union {
UINT32 Signature = 0;
char SignatureAs4Chars[4];
};
UINT32 Length;
UINT64 TableId;
INPUT_ITEM MenuItem = INPUT_ITEM();
@ -811,7 +814,10 @@ public:
class ACPIDropTablesClass
{
public:
UINT32 Signature = 0;
union {
UINT32 Signature = 0;
char SignatureAs4Chars[4];
};
UINT64 TableId = 0;
UINT32 TabLength = 0;
bool OtherOS = 0;