diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-07-02 19:32:07 +0900 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-09 16:06:39 -0500 |
commit | d56dd6cf031075bef985c831146691fdeec8af5c (patch) | |
tree | 53d56051c2a09096e239a34316c798b7a59649f8 /monitor.c | |
parent | 329939776005fad213086e54b038ccd39054e2bc (diff) |
use constant IOPORTS_MASK instead of 0xffff.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1161,7 +1161,7 @@ static void do_ioport_read(Monitor *mon, int count, int format, int size, int suffix; if (has_index) { - cpu_outb(NULL, addr & 0xffff, index & 0xff); + cpu_outb(NULL, addr & IOPORTS_MASK, index & 0xff); addr++; } addr &= 0xffff; |