1

force cast ioport offset addressing to u_short

This commit is contained in:
2022-07-23 14:34:58 +02:00
parent 33e5ccccd7
commit 3bdad54280

View File

@ -37,7 +37,7 @@ public:
void outb(unsigned char offset, unsigned char val) const {
asm volatile("outb %0, %1"
:
: "a"(val), "Nd"(address + offset));
: "a"(val), "Nd"((unsigned short)(address + offset)));
}
// Wortweise Ausgabe eines Wertes ueber einen I/O-Port.
@ -70,7 +70,7 @@ public:
asm volatile("inb %1, %0"
: "=a"(ret)
: "Nd"(address + offset));
: "Nd"((unsigned short)(address + offset)));
return ret;
}