chiark / gitweb /
[PATCH] added klibc version 0.82 (cvs tree) to the udev tree.
[elogind.git] / klibc / klibc / arch / sh / crt0.S
1 #
2 # arch/sh/crt0.S
3 #
4 # void _start(void)
5 # {
6 #    /* Divine up argc, argv, and envp */
7 #    environ = envp;
8 #    exit(main(argc, argv, envp));
9 # } 
10 #
11
12         .text
13         .align 2
14         .type _start,#function
15         .globl _start
16         
17 _start:
18         mov     r15, r4
19         mov     #0, r5
20         mov.l   1f, r0
21
22         jsr     @r0
23          nop
24
25         .align 2
26 1:      .long   __libc_init
27
28         .size _start,.-_start