OpenCores
URL https://opencores.org/ocsvn/aor3000/aor3000/trunk

Subversion Repositories aor3000

[/] [aor3000/] [trunk/] [syn/] [soc/] [firmware/] [header.S] - Rev 2

Compare with Previous | Blame | View Log

/*
 * This file is subject to the terms and conditions of the BSD License. See
 * the file "LICENSE" in the main directory of this archive for more details.
 *
 * Copyright (C) 2014 Aleksander Osman
 */
    
    la  $t0, 0f
    jr  $t0
0:

    la      $t0, __bss_start     # clear .bss
    la      $t1, __bss_stop
    beq     $t0, $t1, 2f
    
1:
    sw      $zero, ($t0)
    addiu   $t0, 4
    bne     $t0, $t1, 1b

2:
    li      $sp, 0xBFC01000     # setup $sp and jump to C code
    j       start_bootloader
    nop

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.