Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc the register is only one byte, act like it
details: https://anonhg.NetBSD.org/src/rev/e9f836a5e6f3
branches: trunk
changeset: 365723:e9f836a5e6f3
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Apr 20 23:32:17 2022 +0000
description:
the register is only one byte, act like it
diffstat:
sys/arch/sparc/sparc/clkctrl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f15c13695d07 -r e9f836a5e6f3 sys/arch/sparc/sparc/clkctrl.c
--- a/sys/arch/sparc/sparc/clkctrl.c Wed Apr 20 22:50:56 2022 +0000
+++ b/sys/arch/sparc/sparc/clkctrl.c Wed Apr 20 23:32:17 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clkctrl.c,v 1.6 2019/12/30 22:13:47 ad Exp $ */
+/* $NetBSD: clkctrl.c,v 1.7 2022/04/20 23:32:17 macallan Exp $ */
/*
* Copyright (c) 2005 Michael Lorenz
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clkctrl.c,v 1.6 2019/12/30 22:13:47 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clkctrl.c,v 1.7 2022/04/20 23:32:17 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -72,7 +72,7 @@
}
if (sbus_bus_map(sa->sa_bustag,
sa->sa_slot, sa->sa_offset,
- sizeof(long),
+ 1,
BUS_SPACE_MAP_LINEAR, &bh) != 0) {
aprint_error("unable to map register\n");
return;
Home |
Main Index |
Thread Index |
Old Index