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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [sysnec810/] [crt0.S] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
        .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.