summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/pccard/pcic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c
index df54688..8f1b624 100644
--- a/sys/pccard/pcic.c
+++ b/sys/pccard/pcic.c
@@ -156,7 +156,7 @@ pcic_memory(struct slot *slt, int win)
{
struct pcic_slot *sp = slt->cdata;
struct mem_desc *mp = &slt->mem[win];
- int reg = mp->window * PCIC_MEMSIZE + PCIC_MEMBASE;
+ int reg = win * PCIC_MEMSIZE + PCIC_MEMBASE;
if (mp->flags & MDF_ACTIVE) {
unsigned long sys_addr = (uintptr_t)(void *)mp->start >> 12;
OpenPOWER on IntegriCloud