Skip to content
Snippets Groups Projects
Commit ed00ddfb authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix remaining issues, move setjmp into relibc crate, move start logic into relibc

parent c63c930e
No related branches found
No related tags found
1 merge request!159Intense refactor
Pipeline #1163 passed with warnings
Showing
with 3 additions and 6 deletions
...@@ -13,7 +13,7 @@ pub unsafe extern "C" fn _start() { ...@@ -13,7 +13,7 @@ pub unsafe extern "C" fn _start() {
#[cfg(target_arch = "x86_64")] #[cfg(target_arch = "x86_64")]
asm!("mov rdi, rsp asm!("mov rdi, rsp
and rsp, 0xFFFFFFFFFFFFFFF0 and rsp, 0xFFFFFFFFFFFFFFF0
call _start_rust" call relibc_start"
: :
: :
: :
...@@ -21,7 +21,7 @@ pub unsafe extern "C" fn _start() { ...@@ -21,7 +21,7 @@ pub unsafe extern "C" fn _start() {
); );
#[cfg(target_arch = "aarch64")] #[cfg(target_arch = "aarch64")]
asm!("mov x0, sp asm!("mov x0, sp
bl _start_rust" bl relibc_start"
: :
: :
: :
......
...@@ -12,6 +12,7 @@ pub mod locale; ...@@ -12,6 +12,7 @@ pub mod locale;
pub mod netinet_in; pub mod netinet_in;
pub mod pwd; pub mod pwd;
pub mod semaphore; pub mod semaphore;
pub mod setjmp;
pub mod sgtty; pub mod sgtty;
pub mod signal; pub mod signal;
pub mod stdio; pub mod stdio;
......
[package]
name = "setjmp"
version = "0.1.0"
authors = ["Jeremy Soller <jackpot51@gmail.com>"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment