ref: 93f6ce24f46cc596060d859ff97a276e80e1d5c5
parent: 21e4d88a51303bc41cc28aba77d8f65d7776e39e
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jun 6 10:52:16 EDT 2020
pc, pc64: use 64-bit physical addresses for ISAConf.port
--- a/sys/src/9/pc/dat.h
+++ b/sys/src/9/pc/dat.h
@@ -343,7 +343,7 @@
struct ISAConf {
char *type;
- ulong port;
+ uvlong port;
int irq;
ulong dma;
ulong mem;
--- a/sys/src/9/pc/devarch.c
+++ b/sys/src/9/pc/devarch.c
@@ -1247,7 +1247,7 @@
if(cistrncmp(p, "type=", 5) == 0)
isa->type = p + 5;
else if(cistrncmp(p, "port=", 5) == 0)
- isa->port = strtoul(p+5, &p, 0);
+ isa->port = strtoull(p+5, &p, 0);
else if(cistrncmp(p, "irq=", 4) == 0)
isa->irq = strtoul(p+4, &p, 0);
else if(cistrncmp(p, "dma=", 4) == 0)
--- a/sys/src/9/pc64/dat.h
+++ b/sys/src/9/pc64/dat.h
@@ -319,7 +319,7 @@
struct ISAConf {
char *type;
- ulong port;
+ uvlong port;
int irq;
ulong dma;
ulong mem;