source: rtems/cpukit/score/cpu/arm/armv7m-initialize.c @ 43e0599

4.115
Last change on this file since 43e0599 was 43e0599, checked in by Mathew Kallada <matkallada@…>, on 12/02/12 at 21:23:57

score misc: Clean up Doxygen #13 (GCI 2012)

This patch is a task from GCI 2012 which improves the Doxygen
comments in the RTEMS source.

http://www.google-melange.com/gci/task/view/google/gci2012/8013205

  • 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.com/license/LICENSE.
19 */
20
21#ifdef HAVE_CONFIG_H
22  #include "config.h"
23#endif
24
25#include <rtems/score/cpu.h>
26
27#ifdef ARM_MULTILIB_ARCH_V7M
28
29#include <rtems/score/armv7m.h>
30
31void _CPU_Initialize( void )
32{
33  /*
34   * The exception handler used to carry out the thead dispatching must have
35   * the lowest priority possible.  No other exception handlers must have this
36   * priority if they use services that may lead to a thread dispatch.  See
37   * also "ARMv7-M Architecture Reference Manual, Issue D" section B1.5.4
38   * "Exception priorities and preemption".
39   */
40  _ARMV7M_Set_exception_priority_and_handler(
41    ARMV7M_VECTOR_SVC,
42    ARMV7M_EXCEPTION_PRIORITY_LOWEST,
43    _ARMV7M_Supervisor_call
44  );
45  _ARMV7M_Set_exception_priority_and_handler(
46    ARMV7M_VECTOR_PENDSV,
47    ARMV7M_EXCEPTION_PRIORITY_LOWEST,
48    _ARMV7M_Pendable_service_call
49  );
50}
51
52#endif /* ARM_MULTILIB_ARCH_V7M */
Note: See TracBrowser for help on using the repository browser.