source: rtems/c/src/lib/libbsp/arm/lm3s69xx/0005-target-arm-Fix-system_clock_scale-initial-value.patch @ 3c0e7f9b

4.115
Last change on this file since 3c0e7f9b was 3c0e7f9b, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 24, 2012 at 7:06:49 PM

bsp/lm3s69xx: New Qemu patch

  • Property mode set to 100644
File size: 912 bytes
  • hw/armv7m_nvic.c

    From bb7192082be2be0acfda61cd46d2b2c3677f8337 Mon Sep 17 00:00:00 2001
    From: Sebastian Huber <sebastian.huber@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@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 b typedef struct { 
    5151#define SYSTICK_CLKSOURCE (1 << 2)
    5252#define SYSTICK_COUNTFLAG (1 << 16)
    5353
    54 int system_clock_scale;
     54int system_clock_scale = SYSTICK_SCALE;
    5555
    5656/* Conversion factor from qemu timer to SysTick frequencies.  */
    5757static inline int64_t systick_scale(nvic_state *s)
Note: See TracBrowser for help on using the repository browser.