RTEMS
bootcard.c
Go to the documentation of this file.
1 
7 /*
8  * COPYRIGHT (c) 1989-2014.
9  * On-Line Applications Research Corporation (OAR).
10  *
11  * The license and distribution terms for this file may be
12  * found in the file LICENSE in this distribution or at
13  * http://www.rtems.org/license/LICENSE.
14  */
15 
16 #include <bsp/bootcard.h>
17 
18 #include <rtems.h>
19 #include <rtems/sysinit.h>
20 
21 /*
22  * At most a single pointer to the cmdline for those target
23  * short on memory and not supporting a command line.
24  */
25 const char *bsp_boot_cmdline;
26 
27 RTEMS_SYSINIT_ITEM(
28  bsp_start,
29  RTEMS_SYSINIT_BSP_START,
30  RTEMS_SYSINIT_ORDER_MIDDLE
31 );
32 
33 /*
34  * This is the initialization framework routine that weaves together
35  * calls to RTEMS and the BSP in the proper sequence to initialize
36  * the system while maximizing shared code and keeping BSP code in C
37  * as much as possible.
38  */
39 void boot_card(
40  const char *cmdline
41 )
42 {
43  ISR_Level bsp_isr_level;
44 
45  /*
46  * Make sure interrupts are disabled. Directly use the CPU port API to allow
47  * tracing of the higher level interrupt disable/enable routines, e.g.
48  * _ISR_Local_disable() and _ISR_Local_enable().
49  */
50  _CPU_ISR_Disable( bsp_isr_level );
51  (void) bsp_isr_level;
52 
53  bsp_boot_cmdline = cmdline;
54 
56 
57  /***************************************************************
58  ***************************************************************
59  * APPLICATION RUNS NOW!!! We will not return to here!!! *
60  ***************************************************************
61  ***************************************************************/
62 }
const char * bsp_boot_cmdline
Global pointer to the command line of boot_card().
Definition: bootcard.c:25
RTEMS_NO_RETURN void rtems_initialize_executive(void)
Initializes the system and starts multitasking.
Definition: exinit.c:121
uint32_t ISR_Level
Definition: isrlevel.h:41
#define _CPU_ISR_Disable(_level)
Definition: cpu.h:780
This header file defines the RTEMS Classic API.
void boot_card(const char *cmdline)
Standard system initialization procedure.
Definition: bootcard.c:39