5
Last change
on this file since 762fa62 was
9964895,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35
|
bsps: Move startup files to bsps
Adjust build support files to new directory layout.
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup mpc55xx |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * Copyright (c) 2012 embedded brains GmbH. 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 | #include <bsp.h> |
---|
22 | #include <bsp/bootcard.h> |
---|
23 | #include <bsp/linker-symbols.h> |
---|
24 | |
---|
25 | LINKER_SYMBOL(bsp_section_work_bonus_begin); |
---|
26 | LINKER_SYMBOL(bsp_section_work_bonus_size); |
---|
27 | |
---|
28 | void bsp_work_area_initialize(void) |
---|
29 | { |
---|
30 | Heap_Area areas [] = { |
---|
31 | { |
---|
32 | bsp_section_work_begin, |
---|
33 | (uintptr_t) bsp_section_work_size |
---|
34 | }, { |
---|
35 | bsp_section_work_bonus_begin, |
---|
36 | (uintptr_t) bsp_section_work_bonus_size |
---|
37 | } |
---|
38 | }; |
---|
39 | |
---|
40 | #ifdef BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN |
---|
41 | { |
---|
42 | uint32_t stack_size = rtems_configuration_get_interrupt_stack_size(); |
---|
43 | |
---|
44 | areas [0].begin = (char *) areas [0].begin + stack_size; |
---|
45 | areas [0].size -= stack_size; |
---|
46 | } |
---|
47 | #endif |
---|
48 | |
---|
49 | bsp_work_area_initialize_with_table( |
---|
50 | areas, |
---|
51 | sizeof(areas) / sizeof(areas [0]) |
---|
52 | ); |
---|
53 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.