Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
a82a8054
Commit
a82a8054
authored
Feb 28, 2013
by
Danilo Sabato
Committed by
Alessandro Rubini
Feb 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-bare-x86-64: enable argc and argv
parent
fe9b8884
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
crt0.S
arch-bare-x86-64/crt0.S
+11
-1
No files found.
arch-bare-x86-64/crt0.S
View file @
a82a8054
...
...
@@ -6,6 +6,16 @@
.section .boot, "ax"
.extern ppsi_main
call ppsi_clear_bss /* In C, lazy me */
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
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment