summaryrefslogtreecommitdiffstats
path: root/sys/dev/scc/scc_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/scc/scc_core.c')
-rw-r--r--sys/dev/scc/scc_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/scc/scc_core.c b/sys/dev/scc/scc_core.c
index c9cda51..17be686 100644
--- a/sys/dev/scc/scc_core.c
+++ b/sys/dev/scc/scc_core.c
@@ -119,7 +119,7 @@ scc_bfe_attach(device_t dev)
} else
sc = sc0;
- size = abs(cl->cl_range);
+ size = abs(cl->cl_range) << sc->sc_bas.regshft;
mtx_init(&sc->sc_hwmtx, "scc_hwmtx", NULL, MTX_SPIN);
@@ -351,7 +351,7 @@ scc_bfe_probe(device_t dev, u_int regshft, u_int rclk)
if (device_get_desc(dev) == NULL)
device_set_desc(dev, cl->name);
- size = abs(cl->cl_range);
+ size = abs(cl->cl_range) << regshft;
/*
* Allocate the register resource. We assume that all SCCs have a
OpenPOWER on IntegriCloud