
VxWorks
BSP Developer’s Guide, 6.0
38
STATUS sysToMonitor
(
int startType /* parameter passed to ROM to tell it how to boot */
)
{
/* Warm reboot address */
/* NOTE: the address to use here is processor-dependent */
FUNCPTR pRom = (FUNCPTR) (ROM_TEXT_ADRS + some offset);
/* lock interrupts */
intLock();
/* disable processor-level cache */
cacheDisable(INSTRUCTION_CACHE);
cacheDisable(DATA_CACHE);
/* disable board-level cache */
/* TO BE DONE */
/* disable aux clock, if one is provided by the BSP */
/* TO BE DONE */
/* disable local devices on the board, e.g. serial devices */
/* TO BE DONE */
/* reset the serial device */
sysSerialReset();
/* set processor state to reasonable value */
/* TO BE DONE */
/* jump to bootrom entry point */
(*pRom) (startType);
/* in case we ever continue from ROM monitor */
return (OK);
}
A template for this routine is also available in the template BSP for your
architecture, and examples are available in the reference BSPs included with your
installation. However, you are encouraged to review the above template, as
functionality in the template and reference BSPs may be incomplete.
Comentários a estes Manuais