Module Name: src
Committed By: riastradh
Date: Fri Dec 31 17:22:15 UTC 2021
Modified Files:
src/sys/dev/acpi/acpica: OsdHardware.c
Log Message:
acpi(9): Return full 64-bit object to caller in PCI config read.
The value of the object will be as small as requested, but the whole
uint64_t object will be written as the caller of a space handler
expects, instead of just part of it.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/acpi/acpica/OsdHardware.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/acpi/acpica/OsdHardware.c
diff -u src/sys/dev/acpi/acpica/OsdHardware.c:1.12 src/sys/dev/acpi/acpica/OsdHardware.c:1.13
--- src/sys/dev/acpi/acpica/OsdHardware.c:1.12 Fri Jan 17 17:06:33 2020
+++ src/sys/dev/acpi/acpica/OsdHardware.c Fri Dec 31 17:22:15 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: OsdHardware.c,v 1.12 2020/01/17 17:06:33 jmcneill Exp $ */
+/* $NetBSD: OsdHardware.c,v 1.13 2021/12/31 17:22:15 riastradh Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: OsdHardware.c,v 1.12 2020/01/17 17:06:33 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: OsdHardware.c,v 1.13 2021/12/31 17:22:15 riastradh Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -224,15 +224,15 @@ AcpiOsReadPciConfiguration(ACPI_PCI_ID *
switch (Width) {
case 8:
- *(uint8_t *) Value = (tmp >> ((Register & 3) * 8)) & 0xff;
+ *Value = (tmp >> ((Register & 3) * 8)) & 0xff;
break;
case 16:
- *(uint16_t *) Value = (tmp >> ((Register & 3) * 8)) & 0xffff;
+ *Value = (tmp >> ((Register & 3) * 8)) & 0xffff;
break;
case 32:
- *(uint32_t *) Value = tmp;
+ *Value = tmp;
break;
default: