Nios® V Processor Software Developer Handbook

ID 743810
Date 5/26/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

6.12.2.1. System Initialization Code Boot Sequence

The HAL provides system initialization code in the C runtime library (crt0.S). This code performs the following boot sequence:
  • Flushes the instruction and data cache (if present).
  • Configures the stack pointer.
  • Configures the global pointer register.
  • Initializes the block started by symbol (BSS) region to zeroes using the linker-supplied symbols __bss_start and __bss_end. These are pointers to the beginning and the end of the BSS region.
  • If there is no boot loader present in the system, copies to RAM any linker section whose run address is in RAM, such as .rwdata, .rodata, and .exceptions.
  • Calls alt_main().