RTEMS Logo

RTEMS 4.8.0 On-Line Library


Motorola M68xxx and Coldfire Specific Information Processor Initialization

PREV UP NEXT Bookshelf RTEMS CPU Architecture Supplement

4.6.2: Processor Initialization

The address of the application's initialization code should be stored in the first vector of the EVT which will allow the immediate vectoring to the application code. If the application requires that the VBR be some value besides zero, then it should be set to the required value at this point. All tasks share the same MC68020's VBR value. Because interrupts are enabled automatically by RTEMS as part of the initialize executive directive, the VBR MUST be set before this directive is invoked to insure correct interrupt vectoring. If processor caching is to be utilized, then it should be enabled during the reset application initialization code.

In addition to the requirements described in the Board Support Packages chapter of the Applications User's Manual for the reset code which is executed before the call to initialize executive, the MC68020 version has the following specific requirements:

Note that the BSP is not responsible for allocating or installing the interrupt stack. RTEMS does this automatically as part of initialization. If the BSP does not install an interrupt stack and -- for whatever reason -- an interrupt occurs before initialize_executive is invoked, then the results are unpredictable.


PREV UP NEXT Bookshelf RTEMS CPU Architecture Supplement

Copyright © 1988-2007OAR Corporation