Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[.joined/src/trunk]: .joined/src/sys/dev/acpi/acpica acpi(9): Return full 64-...
details: https://anonhg.NetBSD.org/.joined/src/rev/5ff0e24462eb
branches: trunk
changeset: 359358:5ff0e24462eb
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Dec 31 17:22:15 2021 +0000
description:
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.
diffstat:
sys/dev/acpi/acpica/OsdHardware.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r 7028663d5c85 -r 5ff0e24462eb sys/dev/acpi/acpica/OsdHardware.c
--- a/sys/dev/acpi/acpica/OsdHardware.c Fri Dec 31 16:43:04 2021 +0000
+++ b/sys/dev/acpi/acpica/OsdHardware.c Fri Dec 31 17:22:15 2021 +0000
@@ -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 @@
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:
Home |
Main Index |
Thread Index |
Old Index