sh_timer.c (95a9457fd44ad97c518858a4e1586a5498f9773c) | sh_timer.c (b01422622b7c7293196fdaf1dbb4f495af44ecf9) |
---|---|
1/* 2 * SuperH Timer modules. 3 * 4 * Copyright (c) 2007 Magnus Damm 5 * Based on arm_timer.c by Paul Brook 6 * Copyright (c) 2005-2006 CodeSourcery. 7 * 8 * This code is licensed under the GPL. --- 190 unchanged lines hidden (view full) --- 199 s->tcor = 0xffffffff; 200 s->tcnt = 0xffffffff; 201 s->tcpr = 0xdeadbeef; 202 s->tcr = 0; 203 s->enabled = 0; 204 s->irq = irq; 205 206 bh = qemu_bh_new(sh_timer_tick, s); | 1/* 2 * SuperH Timer modules. 3 * 4 * Copyright (c) 2007 Magnus Damm 5 * Based on arm_timer.c by Paul Brook 6 * Copyright (c) 2005-2006 CodeSourcery. 7 * 8 * This code is licensed under the GPL. --- 190 unchanged lines hidden (view full) --- 199 s->tcor = 0xffffffff; 200 s->tcnt = 0xffffffff; 201 s->tcpr = 0xdeadbeef; 202 s->tcr = 0; 203 s->enabled = 0; 204 s->irq = irq; 205 206 bh = qemu_bh_new(sh_timer_tick, s); |
207 s->timer = ptimer_init(bh, PTIMER_POLICY_DEFAULT); | 207 s->timer = ptimer_init_with_bh(bh, PTIMER_POLICY_DEFAULT); |
208 209 sh_timer_write(s, OFFSET_TCOR >> 2, s->tcor); 210 sh_timer_write(s, OFFSET_TCNT >> 2, s->tcnt); 211 sh_timer_write(s, OFFSET_TCPR >> 2, s->tcpr); 212 sh_timer_write(s, OFFSET_TCR >> 2, s->tcpr); 213 /* ??? Save/restore. */ 214 return s; 215} --- 121 unchanged lines hidden --- | 208 209 sh_timer_write(s, OFFSET_TCOR >> 2, s->tcor); 210 sh_timer_write(s, OFFSET_TCNT >> 2, s->tcnt); 211 sh_timer_write(s, OFFSET_TCPR >> 2, s->tcpr); 212 sh_timer_write(s, OFFSET_TCR >> 2, s->tcpr); 213 /* ??? Save/restore. */ 214 return s; 215} --- 121 unchanged lines hidden --- |