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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [sysnec810/] [crt0.S] - Rev 262

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

        .set    STACKTOP, 0x100000

        .extern __tp_TEXT, 4
        .extern __gp_DATA, 4
        .extern _main
        .globl  __start
        .globl  _exit
        .globl  __exit

        .text
__start:
        mov     2, r10                  -- set Cache Control Word
        ldsr    r10, 24                 --
#
        mov     STACKTOP, sp            -- set stack pointer
        mov     #__tp_TEXT, tp          -- set tp register
        mov     #__gp_DATA, gp          -- set gp register offset
        add     tp, gp                  -- set gp register
        jal     _main                   -- call main function
__exit:
        halt                            -- end of the program

Go to most recent revision | 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.