RTEMS Logo

RTEMS 4.10.2 On-Line Library


Initialization Code Board Initialization

PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

7.3: Board Initialization

  • Initialization Code Start Code - Assembly Language Initialization
  • Initialization Code boot_card() - Boot the Card
  • Initialization Code bsp_start() - BSP Specific Initialization
  • Initialization Code RTEMS Pretasking Callback
  • Initialization Code RTEMS Predriver Callback
  • Initialization Code Device Driver Initialization
  • Initialization Code RTEMS Postdriver Callback
  • This section describes the steps an application goes through from the time the first BSP code is executed until the first application task executes. The following figure illustrates the program flow during this sequence:

    Initialization Sequence

    The above figure illustrates the flow from assembly language start code to the shared bootcard.c framework then through the C Library, RTEMS, device driver initialization phases, and the context switch to the first application task. After this, the application executes until it calls exit, rtems_shutdown_executive, or some other normal termination initiating routine and control is returned to bootcard.c which allows the BSP to perform some clanup in C (bsp_cleanup) and then boot_card returns to the assembly language which initially invoked it.

    The routines invoked during this will be discussed and their location in the RTEMS source tree pointed out as we discuss each.


    PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

    Copyright © 1988-2008 OAR Corporation