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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [sysnec810/] [crt0.s] - Blame information for rev 1010

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1010 ivang
        .set    STACKTOP, 0x100000
2
 
3
        .extern __tp_TEXT, 4
4
        .extern __gp_DATA, 4
5
        .extern _main
6
        .globl  __start
7
        .globl  _exit
8
        .globl  __exit
9
 
10
        .text
11
__start:
12
        mov     2, r10                  -- set Cache Control Word
13
        ldsr    r10, 24                 --
14
#
15
        mov     STACKTOP, sp            -- set stack pointer
16
        mov     #__tp_TEXT, tp          -- set tp register
17
        mov     #__gp_DATA, gp          -- set gp register offset
18
        add     tp, gp                  -- set gp register
19
        jal     _main                   -- call main function
20
__exit:
21
        halt                            -- end of the program
22
 

powered by: WebSVN 2.1.0

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