BSP and Device Driver Development Guide
The boot_card() is the first C code invoked. Most of the BSPs
use the same shared version of boot_card() which is located in
the following file:
c/src/lib/libbsp/shared/main.c
The boot_card() routine performs the following functions:
Cpu_table) to a default state,
Configuration) to the BSP's Configuration
Table (variable name BSP_Configuration) so it can be modified
as necessary without copying the original table,
bsp_start(),
rtems_initialize_executive_early()
to initialize the executive, C Library, and all device drivers but
return without initiating multitasking or enabling interrupts,
main() in the same file as
boot_card() which does not return until the
rtems_shutdown_executive directive is called, and
bsp_cleanup() to perform
any necessary board specific shutdown actions.
It is important to note that the executive and much of the
support environment must be initialized before invoking main().
BSP and Device Driver Development Guide
Copyright © 1988-2004 OAR Corporation