[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups
From: |
Adam Lackorzynski |
Subject: |
[Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups |
Date: |
Tue, 15 Feb 2011 11:48:52 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Make smpboot available not only for Linux but for all setups.
Signed-off-by: Adam Lackorzynski <address@hidden>
---
hw/arm_boot.c | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/hw/arm_boot.c b/hw/arm_boot.c
index 620550b..a68b396 100644
--- a/hw/arm_boot.c
+++ b/hw/arm_boot.c
@@ -268,16 +268,17 @@ void arm_load_kernel(CPUState *env, struct arm_boot_info
*info)
}
rom_add_blob_fixed("bootloader", bootloader, sizeof(bootloader),
info->loader_start);
- if (info->nb_cpus > 1) {
- smpboot[10] = info->smp_priv_base;
- for (n = 0; n < sizeof(smpboot) / 4; n++) {
- smpboot[n] = tswap32(smpboot[n]);
- }
- rom_add_blob_fixed("smpboot", smpboot, sizeof(smpboot),
- info->smp_loader_start);
- }
info->initrd_size = initrd_size;
}
+
+ if (info->nb_cpus > 1) {
+ smpboot[10] = info->smp_priv_base;
+ for (n = 0; n < sizeof(smpboot) / 4; n++) {
+ smpboot[n] = tswap32(smpboot[n]);
+ }
+ rom_add_blob_fixed("smpboot", smpboot, sizeof(smpboot),
+ info->smp_loader_start);
+ }
info->is_linux = is_linux;
qemu_register_reset(main_cpu_reset, env);
}
--
1.7.2.3
Adam
--
Adam address@hidden
Lackorzynski http://os.inf.tu-dresden.de/~adam/
- [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups,
Adam Lackorzynski <=
- Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups, Peter Maydell, 2011/02/15
- Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups, Adam Lackorzynski, 2011/02/15
- Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups, Peter Maydell, 2011/02/15
- Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups, Adam Lackorzynski, 2011/02/15
- Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups, Vincent Palatin, 2011/02/15
- Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups, Adam Lackorzynski, 2011/02/15
- Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups, Peter Maydell, 2011/02/15