source: rtems/bsps/arm/lm3s69xx/0002-target-arm-Disable-priority_mask-feature.patch @ a3fe23c

5
Last change on this file since a3fe23c was eb36d11, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 25, 2018 at 1:06:08 PM

bsps: Move documentation, etc. files to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 931 bytes
  • hw/arm_gic.c

    From 5f562d098d84e12d4688272dcf68a2d0318721a7 Mon Sep 17 00:00:00 2001
    From: Sebastian Huber <sebastian.huber@embedded-brains.de>
    Date: Fri, 16 Dec 2011 20:00:59 +0100
    Subject: [PATCH 2/4] target-arm: Disable priority_mask feature
    
    This is unused for the ARMv7-M NVIC.
    
    Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
    ---
     hw/arm_gic.c |    4 ++++
     1 files changed, 4 insertions(+), 0 deletions(-)
    
    diff --git a/hw/arm_gic.c b/hw/arm_gic.c
    index 5139d95..cafcc81 100644
    a b static void gic_reset(gic_state *s) 
    707707    int i;
    708708    memset(s->irq_state, 0, GIC_NIRQ * sizeof(gic_irq_state));
    709709    for (i = 0 ; i < NUM_CPU(s); i++) {
     710#ifdef NVIC
     711        s->priority_mask[i] = 0x100;
     712#else
    710713        s->priority_mask[i] = 0xf0;
     714#endif
    711715        s->current_pending[i] = 1023;
    712716        s->running_irq[i] = 1023;
    713717        s->running_priority[i] = 0x100;
Note: See TracBrowser for help on using the repository browser.