RTEMS: Bootcard

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Files | Functions | Variables
Bootcard
Board Support Packages » Shared

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.
void | bsp_start_on_secondary_processor (struct Per_CPU_Control *cpu_self)
| Standard start routine for secondary processors.

## 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.

## ◆ 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().