diff options
author | test <test@test.(none)> | 2013-07-02 17:51:55 +0900 |
---|---|---|
committer | test <test@test.(none)> | 2013-07-02 17:51:55 +0900 |
commit | 6d7ee3e0d990b38cfe087fe1a179fda8d4b5e289 (patch) | |
tree | c7f1213af278e23ed05d50d65103c687ad7d43e5 /os-win32.c | |
parent | c9d7a82ff83a1a21c843c072c3e13aa365ff6c51 (diff) | |
parent | 295d81c62414a63c625fa2e78175573d4b3f5ba4 (diff) | |
download | qemu-6d7ee3e0d990b38cfe087fe1a179fda8d4b5e289.tar.gz qemu-6d7ee3e0d990b38cfe087fe1a179fda8d4b5e289.tar.bz2 qemu-6d7ee3e0d990b38cfe087fe1a179fda8d4b5e289.zip |
Merge 'qemu 1.5.1' into tizen_qemu_1.5.1
Conflicts:
Makefile
arch_init.h
block/raw-win32.c
blockdev.c
configure
console.h
cpu-defs.h
cpu-exec.c
cpus.c
default-configs/arm-softmmu.mak
exec-all.h
exec.c
fpu/softfloat.h
hw/9pfs/virtio-9p-device.c
hw/Makefile.objs
hw/acpi_piix4.c
hw/apic_common.c
hw/arm/Makefile.objs
hw/exynos4210.c
hw/exynos4210.h
hw/exynos4210_fimd.c
hw/exynos4210_gic.c
hw/exynos4210_uart.c
hw/pc.c
hw/pc_sysfw.c
hw/pci-hotplug.c
hw/pci.c
hw/pci.h
hw/pl050.c
hw/ps2.c
hw/qdev-properties.c
hw/qdev.c
hw/qdev.h
hw/vga-pci.c
hw/vga-pci.h
hw/vga_int.h
hw/virtio-balloon.c
hw/virtio-balloon.h
hw/virtio-blk.c
hw/virtio-blk.h
hw/virtio-net.c
hw/virtio-net.h
hw/virtio-pci.c
hw/virtio-pci.h
hw/virtio-serial-bus.c
hw/virtio-serial.h
hw/virtio.c
hw/virtio.h
input.c
kvm.h
main-loop.c
main-loop.h
os-win32.c
oslib-posix.c
oslib-win32.c
qemu-char.c
qemu-options.hx
qemu-sockets.c
softmmu_defs.h
softmmu_template.h
sysemu.h
tcg/i386/tcg-target.c
tcg/tcg.c
tcg/tcg.h
vl.c
Diffstat (limited to 'os-win32.c')
-rw-r--r-- | os-win32.c | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/os-win32.c b/os-win32.c index cf59e623cd..99f2b97a49 100644 --- a/os-win32.c +++ b/os-win32.c @@ -23,6 +23,7 @@ * THE SOFTWARE. */ #include <windows.h> +#include <mmsystem.h> #include <unistd.h> #include <fcntl.h> #include <signal.h> @@ -30,7 +31,7 @@ #include <errno.h> #include <sys/time.h> #include "config-host.h" -#include "sysemu.h" +#include "sysemu/sysemu.h" #include "qemu-options.h" /***********************************************************/ @@ -67,6 +68,7 @@ static BOOL WINAPI qemu_ctrl_handler(DWORD type) return TRUE; } +<<<<<<< HEAD #ifdef CONFIG_MARU void os_setup_early_signal_handling(void) { @@ -74,26 +76,21 @@ void os_setup_early_signal_handling(void) } #else void os_setup_early_signal_handling(void) +======= +static TIMECAPS mm_tc; + +static void os_undo_timer_resolution(void) +>>>>>>> test1.5 { - /* Note: cpu_interrupt() is currently not SMP safe, so we force - QEMU to run on a single CPU */ - HANDLE h; - DWORD_PTR mask, smask; - int i; + timeEndPeriod(mm_tc.wPeriodMin); +} +void os_setup_early_signal_handling(void) +{ SetConsoleCtrlHandler(qemu_ctrl_handler, TRUE); - - h = GetCurrentProcess(); - if (GetProcessAffinityMask(h, &mask, &smask)) { - for(i = 0; i < 32; i++) { - if (mask & (1 << i)) - break; - } - if (i != 32) { - mask = 1 << i; - SetProcessAffinityMask(h, mask); - } - } + timeGetDevCaps(&mm_tc, sizeof(mm_tc)); + timeBeginPeriod(mm_tc.wPeriodMin); + atexit(os_undo_timer_resolution); } #endif /* CONFIG_MARU */ |