diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-09 17:48:30 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-09 17:48:30 +0000 |
commit | f78630ab2f4b15d493fa921bb43ddcec4119f6d3 (patch) | |
tree | e2dd73cd5358e918b073b634d4cdc63ac01ee872 /hw | |
parent | 3b760e046b54a362bdcc39c45b339dafb61d82dd (diff) | |
download | qemu-f78630ab2f4b15d493fa921bb43ddcec4119f6d3.zip qemu-f78630ab2f4b15d493fa921bb43ddcec4119f6d3.tar.gz qemu-f78630ab2f4b15d493fa921bb43ddcec4119f6d3.tar.bz2 |
More phys_ram_base removal.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7055 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r-- | hw/sharpsl.h | 2 | ||||
-rw-r--r-- | hw/spitz.c | 2 | ||||
-rw-r--r-- | hw/tosa.c | 2 | ||||
-rw-r--r-- | hw/zaurus.c | 6 |
4 files changed, 6 insertions, 6 deletions
diff --git a/hw/sharpsl.h b/hw/sharpsl.h index 184aae6..4d5cee9 100644 --- a/hw/sharpsl.h +++ b/hw/sharpsl.h @@ -18,6 +18,6 @@ void scoop_gpio_out_set(struct scoop_info_s *s, int line, qemu_irq handler); #define SL_PXA_PARAM_BASE 0xa0000a00 -void sl_bootparam_write(uint32_t ptr); +void sl_bootparam_write(target_phys_addr_t ptr); #endif @@ -965,7 +965,7 @@ static void spitz_common_init(ram_addr_t ram_size, int vga_ram_size, spitz_binfo.initrd_filename = initrd_filename; spitz_binfo.board_id = arm_id; arm_load_kernel(cpu->env, &spitz_binfo); - sl_bootparam_write(SL_PXA_PARAM_BASE - PXA2XX_SDRAM_BASE); + sl_bootparam_write(SL_PXA_PARAM_BASE); } static void spitz_init(ram_addr_t ram_size, int vga_ram_size, @@ -239,7 +239,7 @@ static void tosa_init(ram_addr_t ram_size, int vga_ram_size, tosa_binfo.initrd_filename = initrd_filename; tosa_binfo.board_id = 0x208; arm_load_kernel(cpu->env, &tosa_binfo); - sl_bootparam_write(SL_PXA_PARAM_BASE - PXA2XX_SDRAM_BASE); + sl_bootparam_write(SL_PXA_PARAM_BASE); } QEMUMachine tosapda_machine = { diff --git a/hw/zaurus.c b/hw/zaurus.c index 8b16c47..482834f 100644 --- a/hw/zaurus.c +++ b/hw/zaurus.c @@ -275,8 +275,8 @@ static struct __attribute__ ((__packed__)) sl_param_info { .phadadj = 0x01, }; -void sl_bootparam_write(uint32_t ptr) +void sl_bootparam_write(target_phys_addr_t ptr) { - memcpy(phys_ram_base + ptr, &zaurus_bootparam, - sizeof(struct sl_param_info)); + cpu_physical_memory_write(ptr, (void *)&zaurus_bootparam, + sizeof(struct sl_param_info)); } |