qemu-timer
来自「xen 3.2.2 源码」· 代码 · 共 55 行
TXT
55 行
Index: ioemu/vl.c===================================================================--- ioemu.orig/vl.c 2007-05-03 19:11:56.000000000 +0100+++ ioemu/vl.c 2007-05-03 19:11:59.000000000 +0100@@ -912,6 +912,16 @@ } } +#ifdef CONFIG_DM+static void timer_save(QEMUFile *f, void *opaque)+{+}++static int timer_load(QEMUFile *f, void *opaque, int version_id)+{+ return 0;+}+#else /* !CONFIG_DM */ static void timer_save(QEMUFile *f, void *opaque) { if (cpu_ticks_enabled) {@@ -1032,6 +1042,8 @@ #endif /* !defined(_WIN32) */ +#endif /* !CONFIG_DM */+ static void init_timer_alarm(void) { #ifdef _WIN32@@ -1063,12 +1075,15 @@ pit_min_timer_count = ((uint64_t)10000 * PIT_FREQ) / 1000000; #else {+#ifndef CONFIG_DM struct sigaction act; struct itimerval itv;+#endif /* get times() syscall frequency */ timer_freq = sysconf(_SC_CLK_TCK); +#ifndef CONFIG_DM /* timer signal */ sigfillset(&act.sa_mask); act.sa_flags = 0;@@ -1114,6 +1129,7 @@ pit_min_timer_count = ((uint64_t)itv.it_interval.tv_usec * PIT_FREQ) / 1000000; }+#endif /* CONFIG_DM */ } #endif }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?