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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [posix/] [test0/] [src/] [crt0.S.ARM] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * Copyright (C) 2009 Bahadir Balban
3
 */
4
 
5
/*
6
 * We expect initial stack state:
7
 *
8
 * (low) |->argc|argv[0]|argv[1]|...|argv[argc] = 0|envp[0]|...|NULL| (high)
9
 *
10
 */
11
 
12
.section .text.head
13
        .global _start;
14
        .align;
15
_start:
16
        bl      platform_init
17
        mov     fp, #0          @ Clear frame pointer
18
        mov     lr, #0          @ Clear link register
19
        ldmfd   sp!, {r0}       @ Argc value in r0
20
        mov     r1, sp          @ Ptr to argv in r1
21
 
22
        bl      __container_init
23
1:
24
        b       1b
25
 

powered by: WebSVN 2.1.0

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