pc, pc64: use 64-bit physical addresses for ISAConf.port

This commit is contained in:
cinap_lenrek 2020-06-06 14:52:16 +02:00
parent 21e4d88a51
commit 93f6ce24f4
3 changed files with 3 additions and 3 deletions

View file

@ -343,7 +343,7 @@ enum {
struct ISAConf {
char *type;
ulong port;
uvlong port;
int irq;
ulong dma;
ulong mem;

View file

@ -1247,7 +1247,7 @@ isaconfig(char *class, int ctlrno, ISAConf *isa)
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)

View file

@ -319,7 +319,7 @@ enum { /* MSRs */
struct ISAConf {
char *type;
ulong port;
uvlong port;
int irq;
ulong dma;
ulong mem;