You've already forked gitified_old_clb_svn
25 lines
586 B
ArmAsm
25 lines
586 B
ArmAsm
|
|
/*
|
|
* A stupid crt0.S for "freestanding" stuff on gnu/linux
|
|
*
|
|
* Copyright (C) 2011 CERN (www.cern.ch)
|
|
* Author: Alessandro Rubini
|
|
*
|
|
* Released according to the GNU LGPL, version 2.1 or any later version.
|
|
*/
|
|
.section .boot, "ax"
|
|
.extern ppsi_main
|
|
|
|
call ppsi_clear_bss /* In C, lazy me */
|
|
|
|
/* inspired from uClib */
|
|
|
|
/* Pop argc and place it in the first parameter-passing register. */
|
|
popq %rdi
|
|
/* Place argv in the second parameter-passing register. */
|
|
movq %rsp, %rsi
|
|
/* Align the stack at a 16-byte boundary. */
|
|
andq $~15, %rsp
|
|
|
|
call ppsi_main
|
|
.end |