1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup bsp_start |
---|
5 | * |
---|
6 | * @brief System low level start. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2008, 2009 |
---|
11 | * embedded brains GmbH |
---|
12 | * Obere Lagerstr. 30 |
---|
13 | * D-82178 Puchheim |
---|
14 | * Germany |
---|
15 | * <rtems@embedded-brains.de> |
---|
16 | * |
---|
17 | * The license and distribution terms for this file may be |
---|
18 | * found in the file LICENSE in this distribution or at |
---|
19 | * http://www.rtems.com/license/LICENSE. |
---|
20 | */ |
---|
21 | |
---|
22 | #ifndef LIBBSP_ARM_SHARED_START_H |
---|
23 | #define LIBBSP_ARM_SHARED_START_H |
---|
24 | |
---|
25 | #include <stddef.h> |
---|
26 | |
---|
27 | #ifdef __cplusplus |
---|
28 | extern "C" { |
---|
29 | #endif /* __cplusplus */ |
---|
30 | |
---|
31 | /** |
---|
32 | * @defgroup bsp_start System Start |
---|
33 | * |
---|
34 | * @ingroup bsp_kit |
---|
35 | * |
---|
36 | * @brief System low level start. |
---|
37 | * |
---|
38 | * @{ |
---|
39 | */ |
---|
40 | |
---|
41 | #define BSP_START_SECTION __attribute__((section(".bsp_start"))) |
---|
42 | |
---|
43 | #define BSP_START_DATA_SECTION __attribute__((section(".bsp_start_data"))) |
---|
44 | |
---|
45 | /** |
---|
46 | * @brief System start entry. |
---|
47 | */ |
---|
48 | void start(void); |
---|
49 | |
---|
50 | /** |
---|
51 | * @brief Start entry hook 0. |
---|
52 | * |
---|
53 | * This hook will be called from the start entry code after all modes and |
---|
54 | * stack pointers are initialized but before the copying of the exception |
---|
55 | * vectors. |
---|
56 | */ |
---|
57 | void bsp_start_hook_0(void); |
---|
58 | |
---|
59 | /** |
---|
60 | * @brief Start entry hook 1. |
---|
61 | * |
---|
62 | * This hook will be called from the start entry code after copying of the |
---|
63 | * exception vectors but before the call to boot_card(). |
---|
64 | */ |
---|
65 | void bsp_start_hook_1(void); |
---|
66 | |
---|
67 | /** |
---|
68 | * @brief Similar to standard memcpy(). |
---|
69 | * |
---|
70 | * The memory areas must be word aligned. Copy code will be executed from the |
---|
71 | * stack. If @a dest equals @a src nothing will be copied. |
---|
72 | */ |
---|
73 | void bsp_start_memcpy(int *dest, const int *src, size_t n); |
---|
74 | |
---|
75 | /** |
---|
76 | * @brief ARM entry point to bsp_start_memcpy(). |
---|
77 | */ |
---|
78 | void bsp_start_memcpy_arm(int *dest, const int *src, size_t n); |
---|
79 | |
---|
80 | /** @} */ |
---|
81 | |
---|
82 | #ifdef __cplusplus |
---|
83 | } |
---|
84 | #endif /* __cplusplus */ |
---|
85 | |
---|
86 | #endif /* LIBBSP_ARM_SHARED_START_H */ |
---|