diff options
author | Richard Henderson <rth@twiddle.net> | 2011-08-11 16:07:16 -0700 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-10-02 16:14:02 +0200 |
commit | 39186d8ab8af8937cee4743cc1956bdc28923ac9 (patch) | |
tree | 24c3d9953aa8900f96aae4086799a4795502de43 /hw/musicpal.c | |
parent | 2ff0c7c3c2251e7e81e90c9556dda64261d033ec (diff) |
serial: Add MemoryRegion parameter to serial_mm_init
Remove the get_system_memory() call from serial_mm_init, pushing
it back into the callers. In many cases we already have the
system memory region available.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/musicpal.c')
-rw-r--r-- | hw/musicpal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/musicpal.c b/hw/musicpal.c index 2131db1d2e..20553b525b 100644 --- a/hw/musicpal.c +++ b/hw/musicpal.c @@ -1486,12 +1486,12 @@ static void musicpal_init(ram_addr_t ram_size, pic[MP_TIMER4_IRQ], NULL); if (serial_hds[0]) { - serial_mm_init(MP_UART1_BASE, 2, pic[MP_UART1_IRQ], 1825000, - serial_hds[0], DEVICE_NATIVE_ENDIAN); + serial_mm_init(address_space_mem, MP_UART1_BASE, 2, pic[MP_UART1_IRQ], + 1825000, serial_hds[0], DEVICE_NATIVE_ENDIAN); } if (serial_hds[1]) { - serial_mm_init(MP_UART2_BASE, 2, pic[MP_UART2_IRQ], 1825000, - serial_hds[1], DEVICE_NATIVE_ENDIAN); + serial_mm_init(address_space_mem, MP_UART2_BASE, 2, pic[MP_UART2_IRQ], + 1825000, serial_hds[1], DEVICE_NATIVE_ENDIAN); } /* Register flash */ |