BSP and Device Driver Development Guide
The postdriver_hook
entry in the RTEMS CPU Configuration
Table may be the address of a user provided routine that is
invoked immediately after the the device drivers and MPCI are initialized.
Interrupts and tasking are disabled. The postdriver hook is optional.
Although optional, most of the RTEMS BSPs provide a postdriver hook
callback. This routine is usually called bsp_postdriver_hook
and is found in the file:
c/src/lib/libbsp/CPU/BSP/startup/bsppost.c
The bsp_postdriver_hook()
routine is the appropriate place to
perform initialization that must be performed before the first task
executes but requires that a device driver be initialized. The
shared implementation of the postdriver hook opens the default
standard in, out, and error files and associates them with
/dev/console
.
BSP and Device Driver Development Guide
Copyright © 1988-2000 OAR Corporation