RTEMS
Files | Functions | Variables
Bootcard

Standard system startup. More...

Files

file  bootcard.h
 
file  bootcard.c
 

Functions

void bsp_start (void)
 
void bsp_reset (void)
 
void boot_card (const char *cmdline) RTEMS_NO_RETURN
 Standard system initialization procedure. More...
 
void bsp_start_on_secondary_processor (struct Per_CPU_Control *cpu_self)
 Standard start routine for secondary processors. More...
 

Variables

const char * bsp_boot_cmdline
 Global pointer to the command line of boot_card().
 

Detailed Description

Standard system startup.

Function Documentation

◆ boot_card()

void boot_card ( const char *  cmdline)

Standard system initialization procedure.

You may pass a command line in cmdline. It is later available via the global bsp_boot_cmdline variable.

This is the C entry point for ALL RTEMS BSPs. It is invoked from the assembly language initialization file usually called start.S which does the basic CPU setup (stack, C runtime environment, zero BSS, load other sections) and calls afterwards boot_card(). The boot card function provides the framework for the BSP initialization sequence. For the basic flow of initialization see RTEMS C User's Guide, Initialization Manager.

This style of initialization ensures that the C++ global constructors are executed after RTEMS is initialized.

Definition at line 39 of file bootcard.c.

◆ bsp_start_on_secondary_processor()

void bsp_start_on_secondary_processor ( struct Per_CPU_Control cpu_self)

Standard start routine for secondary processors.

This function is usually called by low-level startup code of secondary processors or boot loaders starting a secondary processor. The final step of this function is a call to _SMP_Start_multitasking_on_secondary_processor().

Definition at line 38 of file bspsmp.c.