source: rtems/c/src/lib/libbsp/arm/lm3s69xx/0002-target-arm-Disable-priority_mask-feature.patch @ 1c0663b

4.115
Last change on this file since 1c0663b was e1ebfebf, checked in by Sebastian Huber <sebastian.huber@…>, on Feb 11, 2012 at 8:15:06 PM

Patches for Qemu 1.0.50

  • Property mode set to 100644
File size: 931 bytes
RevLine 
[e1ebfebf]1From 5f562d098d84e12d4688272dcf68a2d0318721a7 Mon Sep 17 00:00:00 2001
[e263c16]2From: Sebastian Huber <sebastian.huber@embedded-brains.de>
[e1ebfebf]3Date: Fri, 16 Dec 2011 20:00:59 +0100
4Subject: [PATCH 2/4] target-arm: Disable priority_mask feature
[e263c16]5
[e1ebfebf]6This is unused for the ARMv7-M NVIC.
7
8Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
[e263c16]9---
10 hw/arm_gic.c |    4 ++++
11 1 files changed, 4 insertions(+), 0 deletions(-)
12
13diff --git a/hw/arm_gic.c b/hw/arm_gic.c
[e1ebfebf]14index 5139d95..cafcc81 100644
[e263c16]15--- a/hw/arm_gic.c
16+++ b/hw/arm_gic.c
[e1ebfebf]17@@ -707,7 +707,11 @@ static void gic_reset(gic_state *s)
[e263c16]18     int i;
19     memset(s->irq_state, 0, GIC_NIRQ * sizeof(gic_irq_state));
20     for (i = 0 ; i < NUM_CPU(s); i++) {
21+#ifdef NVIC
22+        s->priority_mask[i] = 0x100;
23+#else
24         s->priority_mask[i] = 0xf0;
25+#endif
26         s->current_pending[i] = 1023;
27         s->running_irq[i] = 1023;
28         s->running_priority[i] = 0x100;
29--
301.7.1
31
Note: See TracBrowser for help on using the repository browser.