source: rtems/cpukit/score/cpu/arm/armv7m-initialize.c @ 68e1ccc4

5
Last change on this file since 68e1ccc4 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file
3 *
4 * @brief ARM7M CPU Initialize
5 */
6
7/*
8 * Copyright (c) 2011 Sebastian Huber.  All rights reserved.
9 *
10 *  embedded brains GmbH
11 *  Obere Lagerstr. 30
12 *  82178 Puchheim
13 *  Germany
14 *  <rtems@embedded-brains.de>
15 *
16 * The license and distribution terms for this file may be
17 * found in the file LICENSE in this distribution or at
18 * http://www.rtems.org/license/LICENSE.
19 */
20
21#ifdef HAVE_CONFIG_H
22  #include "config.h"
23#endif
24
25#include <rtems/score/armv7m.h>
26
27#ifdef ARM_MULTILIB_ARCH_V7M
28
29void _CPU_Initialize( void )
30{
31  /*
32   * The exception handler used to carry out the thead dispatching must have
33   * the lowest priority possible.  No other exception handlers must have this
34   * priority if they use services that may lead to a thread dispatch.  See
35   * also "ARMv7-M Architecture Reference Manual, Issue D" section B1.5.4
36   * "Exception priorities and preemption".
37   */
38  _ARMV7M_Set_exception_priority_and_handler(
39    ARMV7M_VECTOR_SVC,
40    ARMV7M_EXCEPTION_PRIORITY_LOWEST,
41    _ARMV7M_Supervisor_call
42  );
43  _ARMV7M_Set_exception_priority_and_handler(
44    ARMV7M_VECTOR_PENDSV,
45    ARMV7M_EXCEPTION_PRIORITY_LOWEST,
46    _ARMV7M_Pendable_service_call
47  );
48}
49
50#endif /* ARM_MULTILIB_ARCH_V7M */
Note: See TracBrowser for help on using the repository browser.