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

This commit is contained in:
Jeremy Soller
2018-08-26 12:28:27 -06:00
parent c63c930e4a
commit ed00ddfb54
37 changed files with 8 additions and 7 deletions
+33
View File
@@ -0,0 +1,33 @@
//! setjmp implementation for Redox, following http://pubs.opengroup.org/onlinepubs/7908799/xsh/setjmp.h.html
#![no_std]
#![feature(global_asm)]
macro_rules! platform_specific {
($($arch:expr,$ext:expr;)+) => {
$(
#[cfg(target_arch = $arch)]
global_asm!(include_str!(concat!("impl/", $arch, "/setjmp.", $ext)));
#[cfg(target_arch = $arch)]
global_asm!(include_str!(concat!("impl/", $arch, "/longjmp.", $ext)));
)+
}
}
platform_specific! {
"aarch64","s";
"arm","s";
"i386","s";
"m68k","s";
"microblaze","s";
"mips","S";
"mips64","S";
"mipsn32","S";
"or1k","s";
"powerpc","S";
"powerpc64","s";
"s390x","s";
"sh","S";
"x32","s";
"x86_64","s";
}