RAM 6.0 BUX II Series Guía de usuario Pagina 46

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 189
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 45
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.
Vista de pagina 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 188 189

Comentarios a estos manuales

Sin comentarios