blob: a0720cda7f51af8b4047b2cdf80230e86e4b0c17 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/**
* @file
*
* @ingroup bsp_shared
*
* @brief Header file for basic BSP startup functions.
*/
/*
* Copyright (c) 2008
* Embedded Brains GmbH
* Obere Lagerstr. 30
* D-82178 Puchheim
* Germany
* rtems@embedded-brains.de
*
* The license and distribution terms for this file may be found in the file
* LICENSE in this distribution or at http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
/**
* @defgroup bsp_shared Shared BSP Code
*/
#ifndef LIBBSP_SHARED_BOOTCARD_H
#define LIBBSP_SHARED_BOOTCARD_H
#include <stddef.h>
#include <stdint.h>
#include <bspopts.h> /* for BSP_BOOTCARD_HANDLES_RAM_ALLOCATION */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
void bsp_start( void);
void bsp_pretasking_hook( void);
void bsp_predriver_hook( void);
void bsp_postdriver_hook( void);
void bsp_cleanup( void);
#ifdef BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
#define BSP_BOOTCARD_HEAP_USES_WORK_AREA NULL
#define BSP_BOOTCARD_HEAP_SIZE_DEFAULT 0
void bsp_get_work_area(
void **work_area_start,
size_t *work_area_size,
void **heap_start,
size_t *heap_size
);
#endif
int boot_card( int argc, char **argv, char **envp);
/*
* FIXME: Nearly every BSP declares this function in the BSP startup file
* separately and uses the implementation in bsplibc.c.
* Why differ the parameter types from RTEMS_Malloc_Initialize()?
*/
void bsp_libc_init( void *heap_start, uint32_t heap_size, int use_sbrk);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* LIBBSP_SHARED_BOOTCARD_H */
|