diff options
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu-0.12.4/arm_timer-fix-oneshot-mode.patch')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu-0.12.4/arm_timer-fix-oneshot-mode.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/meta/recipes-devtools/qemu/qemu-0.12.4/arm_timer-fix-oneshot-mode.patch b/meta/recipes-devtools/qemu/qemu-0.12.4/arm_timer-fix-oneshot-mode.patch deleted file mode 100644 index 530736c4ca..0000000000 --- a/meta/recipes-devtools/qemu/qemu-0.12.4/arm_timer-fix-oneshot-mode.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From a9cf98d939c4f6539fad7e7d812ea16d96ba3dc9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Rabin Vincent <rabin@rab.in> | ||
3 | Date: Sun, 2 May 2010 15:20:52 +0530 | ||
4 | Subject: [PATCH] arm_timer: fix oneshot mode | ||
5 | |||
6 | commit id: a9cf98d939c4f6539fad7e7d812ea16d96ba3dc9 in git://git.sv.gnu.org/qemu.git | ||
7 | |||
8 | In oneshot mode, the delta needs to come from the TimerLoad register, | ||
9 | not the maximum limit. | ||
10 | |||
11 | Signed-off-by: Rabin Vincent <rabin@rab.in> | ||
12 | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> | ||
13 | --- | ||
14 | hw/arm_timer.c | 2 +- | ||
15 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
16 | |||
17 | diff --git a/hw/arm_timer.c b/hw/arm_timer.c | ||
18 | index 5b6947a..9073ffc 100644 | ||
19 | --- a/hw/arm_timer.c | ||
20 | +++ b/hw/arm_timer.c | ||
21 | @@ -71,7 +71,7 @@ static void arm_timer_recalibrate(arm_timer_state *s, int reload) | ||
22 | { | ||
23 | uint32_t limit; | ||
24 | |||
25 | - if ((s->control & TIMER_CTRL_PERIODIC) == 0) { | ||
26 | + if ((s->control & (TIMER_CTRL_PERIODIC | TIMER_CTRL_ONESHOT)) == 0) { | ||
27 | /* Free running. */ | ||
28 | if (s->control & TIMER_CTRL_32BIT) | ||
29 | limit = 0xffffffff; | ||
30 | -- | ||
31 | 1.6.5.2 | ||
32 | |||