Changeset 7148abf in mainline
- Timestamp:
- 2018-04-28T16:18:07Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e634684
- Parents:
- 3fafe5e0
- Location:
- uspace/lib/c
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/abs32le/src/entry.c
r3fafe5e0 r7148abf 39 39 void __entry(void) 40 40 { 41 __ main(NULL);41 __libc_main(NULL); 42 42 } 43 43 -
uspace/lib/c/arch/amd64/src/entry.S
r3fafe5e0 r7148abf 46 46 47 47 # %rdi was deliberately chosen as the first argument is also in %rdi 48 # Pass PCB pointer to __ main (no operation)49 call __ main48 # Pass PCB pointer to __libc_main (no operation) 49 call __libc_main -
uspace/lib/c/arch/arm32/src/entry.S
r3fafe5e0 r7148abf 51 51 sub fp, ip, #4 52 52 53 # Pass pcb_ptr to __ main as the first argument (in r0)53 # Pass pcb_ptr to __libc_main as the first argument (in r0) 54 54 mov r0, r1 55 bl __ main55 bl __libc_main 56 56 57 57 .data -
uspace/lib/c/arch/ia32/src/entry.S
r3fafe5e0 r7148abf 65 65 movl %esp, %ebp 66 66 67 # Pass the PCB pointer to __ main as the first argument67 # Pass the PCB pointer to __libc_main as the first argument 68 68 pushl %edi 69 call __ main69 call __libc_main -
uspace/lib/c/arch/ia64/src/entry.S
r3fafe5e0 r7148abf 41 41 movl gp = __gp 42 42 43 # Pass PCB pointer as the first argument to __ main43 # Pass PCB pointer as the first argument to __libc_main 44 44 mov out0 = r2 ;; 45 br.call.sptk.many b0 = __ main45 br.call.sptk.many b0 = __libc_main 46 46 -
uspace/lib/c/arch/mips32/src/entry.S
r3fafe5e0 r7148abf 51 51 .cprestore 16 52 52 53 # Pass pcb_ptr to __ main() as the first argument. It is already53 # Pass pcb_ptr to __libc_main() as the first argument. It is already 54 54 # in $a0. As the first argument is passed in $a0, no operation 55 55 # is needed. 56 56 57 jal __ main57 jal __libc_main 58 58 nop 59 59 -
uspace/lib/c/arch/ppc32/src/entry.S
r3fafe5e0 r7148abf 45 45 stwu %r1, -16(%r1) 46 46 47 # Pass the PCB pointer to __ main() as the first argument.47 # Pass the PCB pointer to __libc_main() as the first argument. 48 48 # The first argument is passed in r3. 49 49 mr %r3, %r6 50 bl __ main50 bl __libc_main -
uspace/lib/c/arch/riscv64/src/entry.c
r3fafe5e0 r7148abf 38 38 void __entry(void) 39 39 { 40 __ main((void *) 0);40 __libc_main((void *) 0); 41 41 } 42 42 -
uspace/lib/c/arch/sparc64/src/entry.S
r3fafe5e0 r7148abf 46 46 add %g0, -0x7ff, %fp 47 47 48 # Pass pcb_ptr as the first argument to __ main()49 call __ main48 # Pass pcb_ptr as the first argument to __libc_main() 49 call __libc_main 50 50 mov %i1, %o0 -
uspace/lib/c/generic/libc.c
r3fafe5e0 r7148abf 67 67 static bool env_setup = false; 68 68 69 void __ main(void *pcb_ptr)69 void __libc_main(void *pcb_ptr) 70 70 { 71 71 /* Initialize user task run-time environment */ -
uspace/lib/c/generic/private/libc.h
r3fafe5e0 r7148abf 37 37 38 38 extern unsigned char _end[]; 39 extern void __ main(void *) __attribute__((noreturn));39 extern void __libc_main(void *) __attribute__((noreturn)); 40 40 extern int main(int, char *[]); 41 41
Note:
See TracChangeset
for help on using the changeset viewer.