Visible to Intel only — GUID: mwh1416946801971
Ixiasoft
Visible to Intel only — GUID: mwh1416946801971
Ixiasoft
7.14.3. Customizing the Boot Sequence
Function alt_main() calls function main(). After main() returns, the default alt_main() enters an infinite loop. Alternatively, your custom alt_main() might terminate by calling exit(). Do not use a return statement.
The following line of code is the prototype for alt_main():
void alt_main (void)
The HAL build environment includes mechanisms to override default HAL BSP code. This lets you override boot loaders, as well as default device drivers and other system code, with your own implementation.
alt_sys_init.c is a generated file, which you must not modify. However, the Nios® II SBT enables you to control the generated contents of alt_sys_init.c. To specify the initialization sequence in alt_sys_init.c, you manipulate the auto_initialize and alt_sys_init_priority properties of each driver, using the set_sw_property Tcl command.
For more information about generated files and how to control the contents of alt_sys_init.c, refer to the " Nios® II Software Build Tools" chapter.
For more information about alt_sys_init.c, refer to the "Developing Device Drivers for the Hardware Abstraction Layer" chapter.
For more information about the set_sw_property Tcl command, refer to the " Nios® II Software Build Tools" chapter.