summaryrefslogtreecommitdiff
path: root/src/mainboard/emulation/qemu-i440fx/memmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/emulation/qemu-i440fx/memmap.c')
-rw-r--r--src/mainboard/emulation/qemu-i440fx/memmap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mainboard/emulation/qemu-i440fx/memmap.c b/src/mainboard/emulation/qemu-i440fx/memmap.c
index efe83c3449..be730b7516 100644
--- a/src/mainboard/emulation/qemu-i440fx/memmap.c
+++ b/src/mainboard/emulation/qemu-i440fx/memmap.c
@@ -22,11 +22,11 @@ unsigned long qemu_get_high_memory_size(void)
{
unsigned long high;
outb(HIGH_HIGHRAM_ADDR, CMOS_ADDR_PORT);
- high = ((unsigned long) inb(CMOS_DATA_PORT)) << 22;
+ high = ((unsigned long)inb(CMOS_DATA_PORT)) << 22;
outb(MID_HIGHRAM_ADDR, CMOS_ADDR_PORT);
- high |= ((unsigned long) inb(CMOS_DATA_PORT)) << 14;
+ high |= ((unsigned long)inb(CMOS_DATA_PORT)) << 14;
outb(LOW_HIGHRAM_ADDR, CMOS_ADDR_PORT);
- high |= ((unsigned long) inb(CMOS_DATA_PORT)) << 6;
+ high |= ((unsigned long)inb(CMOS_DATA_PORT)) << 6;
return high;
}
@@ -34,9 +34,9 @@ unsigned long qemu_get_memory_size(void)
{
unsigned long tomk;
outb(HIGH_RAM_ADDR, CMOS_ADDR_PORT);
- tomk = ((unsigned long) inb(CMOS_DATA_PORT)) << 14;
+ tomk = ((unsigned long)inb(CMOS_DATA_PORT)) << 14;
outb(LOW_RAM_ADDR, CMOS_ADDR_PORT);
- tomk |= ((unsigned long) inb(CMOS_DATA_PORT)) << 6;
+ tomk |= ((unsigned long)inb(CMOS_DATA_PORT)) << 6;
tomk += 16 * 1024;
return tomk;
}