summaryrefslogtreecommitdiff
path: root/sys/src/cmd/aux/vga/pci.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-06-06 16:44:14 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2020-06-06 16:44:14 +0200
commit301148756eae8c9821ae0321cfe30a3a75b67a68 (patch)
treef0360ec8bd23b0fb29b1c182577a2cc4c971b3c9 /sys/src/cmd/aux/vga/pci.c
parent4c8d2b0ebf1fd3fe5b96e227da23a82f669a82fa (diff)
aux/vga: use 64-bit physical addresses for pci membar
Diffstat (limited to 'sys/src/cmd/aux/vga/pci.c')
-rw-r--r--sys/src/cmd/aux/vga/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/aux/vga/pci.c b/sys/src/cmd/aux/vga/pci.c
index ad1227101..2b4c57e0c 100644
--- a/sys/src/cmd/aux/vga/pci.c
+++ b/sys/src/cmd/aux/vga/pci.c
@@ -70,9 +70,9 @@ pcicfginit(void)
j = strtol(s+1, &s, 10);
if(j < 0 || j >= nelem(p->mem))
break;
- p->mem[j].bar = strtoul(s+1, &s, 16);
+ p->mem[j].bar = strtoull(s+1, &s, 16);
p->mem[j].size = strtoul(s+1, &s, 10);
- trace("\tmem[%d] = %lux %d\n", j, p->mem[j].bar, p->mem[j].size);
+ trace("\tmem[%d] = %llux %d\n", j, p->mem[j].bar, p->mem[j].size);
}
if(pcilist != nil)