aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/acpica
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2019-03-29 20:21:28 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2019-03-29 20:21:28 +0000
commit278f0de60d655b6b28d4c92affe3603a49228645 (patch)
tree230fb42831f82ec7189a843adb492d92b6743b9c /sys/amd64/acpica
parent43b65e3c98a447c21fecb0a3ee934ced08d32f1b (diff)
parent222d1f49264d00972299c6ff23de8100be561897 (diff)
Notes
Diffstat (limited to 'sys/amd64/acpica')
-rw-r--r--sys/amd64/acpica/acpi_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/acpica/acpi_machdep.c b/sys/amd64/acpica/acpi_machdep.c
index 0feab2ba060e..b0208360b6ab 100644
--- a/sys/amd64/acpica/acpi_machdep.c
+++ b/sys/amd64/acpica/acpi_machdep.c
@@ -164,7 +164,7 @@ map_table(vm_paddr_t pa, int offset, const char *sig)
void *table;
header = table_map(pa, offset, sizeof(ACPI_TABLE_HEADER));
- if (strncmp(header->Signature, sig, ACPI_NAME_SIZE) != 0) {
+ if (strncmp(header->Signature, sig, ACPI_NAMESEG_SIZE) != 0) {
table_unmap(header, sizeof(ACPI_TABLE_HEADER));
return (NULL);
}
@@ -202,7 +202,7 @@ probe_table(vm_paddr_t address, const char *sig)
printf("Table '%.4s' at 0x%jx\n", table->Signature,
(uintmax_t)address);
- if (strncmp(table->Signature, sig, ACPI_NAME_SIZE) != 0) {
+ if (strncmp(table->Signature, sig, ACPI_NAMESEG_SIZE) != 0) {
table_unmap(table, sizeof(ACPI_TABLE_HEADER));
return (0);
}