Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/broadcom Adjust register base and size



details:   https://anonhg.NetBSD.org/src/rev/be33eedd073d
branches:  trunk
changeset: 985129:be33eedd073d
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Aug 08 18:55:12 2021 +0000

description:
Adjust register base and size

diffstat:

 sys/arch/arm/broadcom/bcm2835_com_acpi.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 99065e21013b -r be33eedd073d sys/arch/arm/broadcom/bcm2835_com_acpi.c
--- a/sys/arch/arm/broadcom/bcm2835_com_acpi.c  Sun Aug 08 18:43:21 2021 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_com_acpi.c  Sun Aug 08 18:55:12 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm2835_com_acpi.c,v 1.1 2021/08/08 18:43:21 jmcneill Exp $ */
+/* $NetBSD: bcm2835_com_acpi.c,v 1.2 2021/08/08 18:55:12 jmcneill Exp $ */
 
 /*
  * Copyright (c) 2021 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_com_acpi.c,v 1.1 2021/08/08 18:43:21 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_com_acpi.c,v 1.2 2021/08/08 18:55:12 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -100,8 +100,8 @@
        }
 
        iot = aa->aa_memt;
-       base = mem->ar_base;
-       size = mem->ar_length;
+       base = mem->ar_base + 0x40;
+       size = mem->ar_length - 0x40;
 
        irq = acpi_res_irq(&res, 0);
        if (irq == NULL) {



Home | Main Index | Thread Index | Old Index