source: rtems/c/src/lib/libbsp/shared/include/bootcard.h @ 61814f9

4.104.115
Last change on this file since 61814f9 was 61814f9, checked in by Joel Sherrill <joel.sherrill@…>, on 10/02/08 at 19:13:05

2008-10-02 Joel Sherrill <joel.sherrill@…>

  • bootcard.c, bspgetworkarea.c, bsppretaskinghook.c, include/bootcard.h: Change size_t to ssize_t on bsp_get_work_area(). On 16-bit architectures, size_t can be 16-bits which would limit the work area to 64K.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup bsp_shared
5 *
6 * @brief Header file for basic BSP startup functions.
7 */
8
9/*
10 * Copyright (c) 2008
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 found in the file
18 * LICENSE in this distribution or at http://www.rtems.com/license/LICENSE.
19 *
20 * $Id$
21 */
22
23/**
24 * @defgroup bsp_shared Shared BSP Code
25 */
26
27#ifndef LIBBSP_SHARED_BOOTCARD_H
28#define LIBBSP_SHARED_BOOTCARD_H
29
30#include <stddef.h>
31#include <stdint.h>
32#include <sys/types.h>
33
34#include <bspopts.h>
35
36#ifdef __cplusplus
37extern "C" {
38#endif /* __cplusplus */
39
40void bsp_start(void);
41
42void bsp_pretasking_hook(void);
43
44void bsp_predriver_hook(void);
45
46void bsp_postdriver_hook(void);
47
48void bsp_cleanup(void);
49
50void bsp_reset(void);
51
52#define BSP_BOOTCARD_HEAP_USES_WORK_AREA NULL
53
54#define BSP_BOOTCARD_HEAP_SIZE_DEFAULT 0
55
56void bsp_get_work_area(
57  void    **work_area_start,
58  ssize_t  *work_area_size,
59  void    **heap_start,
60  ssize_t  *heap_size
61);
62
63int boot_card( int argc, char **argv, char **envp);
64
65void bsp_libc_init( void *heap_start, size_t heap_size, size_t sbrk_amount);
66
67#ifdef __cplusplus
68}
69#endif /* __cplusplus */
70
71#endif /* LIBBSP_SHARED_BOOTCARD_H */
Note: See TracBrowser for help on using the repository browser.