arm_timer.c (95a9457fd44ad97c518858a4e1586a5498f9773c) | arm_timer.c (b01422622b7c7293196fdaf1dbb4f495af44ecf9) |
---|---|
1/* 2 * ARM PrimeCell Timer modules. 3 * 4 * Copyright (c) 2005-2006 CodeSourcery. 5 * Written by Paul Brook 6 * 7 * This code is licensed under the GPL. 8 */ --- 159 unchanged lines hidden (view full) --- 168 arm_timer_state *s; 169 QEMUBH *bh; 170 171 s = (arm_timer_state *)g_malloc0(sizeof(arm_timer_state)); 172 s->freq = freq; 173 s->control = TIMER_CTRL_IE; 174 175 bh = qemu_bh_new(arm_timer_tick, s); | 1/* 2 * ARM PrimeCell Timer modules. 3 * 4 * Copyright (c) 2005-2006 CodeSourcery. 5 * Written by Paul Brook 6 * 7 * This code is licensed under the GPL. 8 */ --- 159 unchanged lines hidden (view full) --- 168 arm_timer_state *s; 169 QEMUBH *bh; 170 171 s = (arm_timer_state *)g_malloc0(sizeof(arm_timer_state)); 172 s->freq = freq; 173 s->control = TIMER_CTRL_IE; 174 175 bh = qemu_bh_new(arm_timer_tick, s); |
176 s->timer = ptimer_init(bh, PTIMER_POLICY_DEFAULT); | 176 s->timer = ptimer_init_with_bh(bh, PTIMER_POLICY_DEFAULT); |
177 vmstate_register(NULL, -1, &vmstate_arm_timer, s); 178 return s; 179} 180 181/* ARM PrimeCell SP804 dual timer module. 182 * Docs at 183 * http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0271d/index.html 184*/ --- 228 unchanged lines hidden --- | 177 vmstate_register(NULL, -1, &vmstate_arm_timer, s); 178 return s; 179} 180 181/* ARM PrimeCell SP804 dual timer module. 182 * Docs at 183 * http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0271d/index.html 184*/ --- 228 unchanged lines hidden --- |