aboutsummaryrefslogtreecommitdiffstats
path: root/src/entry.s
blob: 3ff60bacae1c2a77b3318a18e9735870424ad514 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Entry point for the ROM image.
        .section .text.entry
        .global _start
_start:

        # Set up the stack
        la      $sp, _boot_stack

        # Zero BSS.
        la      $a0, _bss_start
        la      $a1, _bss_end
        subu    $a1, $a1, $a0
        jal     bzero

        # Jump to C entry point.
        j       boot