Skip to content

Commit 73a049a

Browse files
SchmErikrafaeljw
authored andcommitted
ACPICA: disassembler: disassemble OEMx tables as AML
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 0fcb9a3 commit 73a049a

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎drivers/acpi/acpica/utmisc.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ u8 acpi_ut_is_aml_table(struct acpi_table_header *table)
6262
if (ACPI_COMPARE_NAME(table->signature, ACPI_SIG_DSDT) ||
6363
ACPI_COMPARE_NAME(table->signature, ACPI_SIG_PSDT) ||
6464
ACPI_COMPARE_NAME(table->signature, ACPI_SIG_SSDT) ||
65-
ACPI_COMPARE_NAME(table->signature, ACPI_SIG_OSDT)) {
65+
ACPI_COMPARE_NAME(table->signature, ACPI_SIG_OSDT) ||
66+
ACPI_IS_OEM_SIG(table->signature)) {
6667
return (TRUE);
6768
}
6869

‎include/acpi/actbl.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#define ACPI_SIG_XSDT "XSDT" /* Extended System Description Table */
3939
#define ACPI_SIG_SSDT "SSDT" /* Secondary System Description Table */
4040
#define ACPI_RSDP_NAME "RSDP" /* Short name for RSDP, not signature */
41+
#define ACPI_OEM_NAME "OEM" /* Short name for OEM, not signature */
4142

4243
/*
4344
* All tables and structures must be byte-packed to match the ACPI

‎include/acpi/actypes.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,10 @@ typedef u64 acpi_integer;
527527
#define ACPI_VALIDATE_RSDP_SIG(a) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_SIG_RSDP, 8))
528528
#define ACPI_MAKE_RSDP_SIG(dest) (memcpy (ACPI_CAST_PTR (char, (dest)), ACPI_SIG_RSDP, 8))
529529

530+
/* Support for OEMx signature (x can be any character) */
531+
#define ACPI_IS_OEM_SIG(a) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_OEM_NAME, 3) &&\
532+
strnlen (a, ACPI_NAME_SIZE) == ACPI_NAME_SIZE)
533+
530534
/*
531535
* Algorithm to obtain access bit width.
532536
* Can be used with access_width of struct acpi_generic_address and access_size of

0 commit comments

Comments
 (0)