Changeset 9f1412b9 in rtems


Ignore:
Timestamp:
Sep 16, 2011, 10:25:22 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
dfdf7961
Parents:
3ce764a
Message:

2011-09-16 Sebastian Huber <sebastian.huber@…>

  • nios2-eic-il-low-level.S, nios2-eic-rsie-low-level.S: New files.
  • Makefile.am: Reflect changes above.
  • rtems/score/cpu.h, rtems/score/nios2-utility.h, nios2-thread-dispatch-disabled.c, nios2-context-switch.S: Added support for thread stack protection via the MPU.
Location:
cpukit/score/cpu/nios2
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/nios2/ChangeLog

    r3ce764a r9f1412b9  
     12011-09-16      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * nios2-eic-il-low-level.S, nios2-eic-rsie-low-level.S: New files.
     4        * Makefile.am: Reflect changes above.
     5        * rtems/score/cpu.h, rtems/score/nios2-utility.h,
     6        nios2-thread-dispatch-disabled.c, nios2-context-switch.S: Added
     7        support for thread stack protection via the MPU.
     8
    192011-09-14      Sebastian Huber <sebastian.huber@embedded-brains.de>
    210
  • cpukit/score/cpu/nios2/Makefile.am

    r3ce764a r9f1412b9  
    2727libscorecpu_a_SOURCES += nios2-context-initialize.c
    2828libscorecpu_a_SOURCES += nios2-context-switch.S
     29libscorecpu_a_SOURCES += nios2-eic-il-low-level.S
     30libscorecpu_a_SOURCES += nios2-eic-rsie-low-level.S
    2931libscorecpu_a_SOURCES += nios2-fatal-halt.c
    3032libscorecpu_a_SOURCES += nios2-iic-low-level.S
  • cpukit/score/cpu/nios2/nios2-context-switch.S

    r3ce764a r9f1412b9  
    4444        stw     sp, NIOS2_CONTEXT_OFFSET_SP(r4)
    4545        stw     ra, NIOS2_CONTEXT_OFFSET_RA(r4)
    46         stw     r9, NIOS2_CONTEXT_OFFSET_TDD(r4)
     46        stw     r9, NIOS2_CONTEXT_OFFSET_THREAD_DISPATCH_DISABLED(r4)
    4747
    4848restore:
    4949
    50         ldw     r10, NIOS2_CONTEXT_OFFSET_TDD(r5)
     50        ldw     r10, NIOS2_CONTEXT_OFFSET_THREAD_DISPATCH_DISABLED(r5)
    5151        ldw     r16, NIOS2_CONTEXT_OFFSET_R16(r5)
    5252        ldw     r17, NIOS2_CONTEXT_OFFSET_R17(r5)
  • cpukit/score/cpu/nios2/nios2-thread-dispatch-disabled.c

    r3ce764a r9f1412b9  
    4040NIOS2_ASSERT_OFFSET(sp, SP);
    4141NIOS2_ASSERT_OFFSET(ra, RA);
    42 NIOS2_ASSERT_OFFSET(thread_dispatch_disabled, TDD);
     42NIOS2_ASSERT_OFFSET(thread_dispatch_disabled, THREAD_DISPATCH_DISABLED);
     43NIOS2_ASSERT_OFFSET(stack_mpubase, STACK_MPUBASE);
     44NIOS2_ASSERT_OFFSET(stack_mpuacc, STACK_MPUACC);
    4345
    4446uint32_t _Nios2_Thread_dispatch_disabled;
  • cpukit/score/cpu/nios2/rtems/score/cpu.h

    r3ce764a r9f1412b9  
    135135  uint32_t ra;
    136136  uint32_t thread_dispatch_disabled;
     137  uint32_t stack_mpubase;
     138  uint32_t stack_mpuacc;
    137139} Context_Control;
    138140
  • cpukit/score/cpu/nios2/rtems/score/nios2-utility.h

    r3ce764a r9f1412b9  
    4545#define NIOS2_CONTEXT_OFFSET_SP 40
    4646#define NIOS2_CONTEXT_OFFSET_RA 44
    47 #define NIOS2_CONTEXT_OFFSET_TDD 48
     47#define NIOS2_CONTEXT_OFFSET_THREAD_DISPATCH_DISABLED 48
     48#define NIOS2_CONTEXT_OFFSET_STACK_MPUBASE 52
     49#define NIOS2_CONTEXT_OFFSET_STACK_MPUACC 56
    4850
    4951#define NIOS2_ISR_STATUS_MASK_IIC 0xfffffffe
Note: See TracChangeset for help on using the changeset viewer.