* [Qemu-devel] [7055] More phys_ram_base removal.
@ 2009-04-09 17:48 Paul Brook
0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2009-04-09 17:48 UTC (permalink / raw)
To: qemu-devel
Revision: 7055
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7055
Author: pbrook
Date: 2009-04-09 17:48:30 +0000 (Thu, 09 Apr 2009)
Log Message:
-----------
More phys_ram_base removal.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Modified Paths:
--------------
trunk/hw/sharpsl.h
trunk/hw/spitz.c
trunk/hw/tosa.c
trunk/hw/zaurus.c
Modified: trunk/hw/sharpsl.h
===================================================================
--- trunk/hw/sharpsl.h 2009-04-09 17:30:32 UTC (rev 7054)
+++ trunk/hw/sharpsl.h 2009-04-09 17:48:30 UTC (rev 7055)
@@ -18,6 +18,6 @@
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
Modified: trunk/hw/spitz.c
===================================================================
--- trunk/hw/spitz.c 2009-04-09 17:30:32 UTC (rev 7054)
+++ trunk/hw/spitz.c 2009-04-09 17:48:30 UTC (rev 7055)
@@ -965,7 +965,7 @@
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,
Modified: trunk/hw/tosa.c
===================================================================
--- trunk/hw/tosa.c 2009-04-09 17:30:32 UTC (rev 7054)
+++ trunk/hw/tosa.c 2009-04-09 17:48:30 UTC (rev 7055)
@@ -239,7 +239,7 @@
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 = {
Modified: trunk/hw/zaurus.c
===================================================================
--- trunk/hw/zaurus.c 2009-04-09 17:30:32 UTC (rev 7054)
+++ trunk/hw/zaurus.c 2009-04-09 17:48:30 UTC (rev 7055)
@@ -275,8 +275,8 @@
.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));
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-09 17:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-09 17:48 [Qemu-devel] [7055] More phys_ram_base removal Paul Brook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).