[rtems commit] bsp/lm3s69xx: New Qemu patch

Sebastian Huber sebh at rtems.org
Sat Mar 24 19:21:49 UTC 2012


Module:    rtems
Branch:    master
Commit:    3c0e7f9b4acf030d1720958007f03f9da8903640
Changeset: http://git.rtems.org/rtems/commit/?id=3c0e7f9b4acf030d1720958007f03f9da8903640

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sat Mar 24 20:06:49 2012 +0100

bsp/lm3s69xx: New Qemu patch

---

 ...-arm-Fix-system_clock_scale-initial-value.patch |   29 ++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/c/src/lib/libbsp/arm/lm3s69xx/0005-target-arm-Fix-system_clock_scale-initial-value.patch b/c/src/lib/libbsp/arm/lm3s69xx/0005-target-arm-Fix-system_clock_scale-initial-value.patch
new file mode 100644
index 0000000..d1c8988
--- /dev/null
+++ b/c/src/lib/libbsp/arm/lm3s69xx/0005-target-arm-Fix-system_clock_scale-initial-value.patch
@@ -0,0 +1,29 @@
+From bb7192082be2be0acfda61cd46d2b2c3677f8337 Mon Sep 17 00:00:00 2001
+From: Sebastian Huber <sebastian.huber at embedded-brains.de>
+Date: Sat, 24 Mar 2012 19:58:44 +0100
+Subject: [PATCH] target-arm: Fix system_clock_scale initial value
+
+This variable should be initilized somewhere.  This default value avoids
+a division by zero.
+
+Signed-off-by: Sebastian Huber <sebastian.huber at embedded-brains.de>
+---
+ hw/armv7m_nvic.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/hw/armv7m_nvic.c b/hw/armv7m_nvic.c
+index 65b575e..b3a1b3d 100644
+--- a/hw/armv7m_nvic.c
++++ b/hw/armv7m_nvic.c
+@@ -51,7 +51,7 @@ typedef struct {
+ #define SYSTICK_CLKSOURCE (1 << 2)
+ #define SYSTICK_COUNTFLAG (1 << 16)
+ 
+-int system_clock_scale;
++int system_clock_scale = SYSTICK_SCALE;
+ 
+ /* Conversion factor from qemu timer to SysTick frequencies.  */
+ static inline int64_t systick_scale(nvic_state *s)
+-- 
+1.7.1
+




More information about the vc mailing list