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

Update pthreads-emb

parent 756a0d2e
No related branches found
No related tags found
No related merge requests found
Subproject commit 6720dfdc95246f85aeb1e867e0105d4eb43ad759 Subproject commit 4b87ab0dcdbc58910b9683e3ce561fccea05386d
...@@ -44,13 +44,6 @@ unsafe fn copy_string_array(array: *const *const c_char, len: usize) -> Vec<*mut ...@@ -44,13 +44,6 @@ unsafe fn copy_string_array(array: *const *const c_char, len: usize) -> Vec<*mut
vec vec
} }
// In the case that pthread is not linked, pthread_init can be replaced
#[linkage = "weak"]
#[no_mangle]
extern "C" fn pthread_init() -> c_int {
0
}
#[inline(never)] #[inline(never)]
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn relibc_start(sp: &'static Stack) -> ! { pub unsafe extern "C" fn relibc_start(sp: &'static Stack) -> ! {
...@@ -85,9 +78,6 @@ pub unsafe extern "C" fn relibc_start(sp: &'static Stack) -> ! { ...@@ -85,9 +78,6 @@ pub unsafe extern "C" fn relibc_start(sp: &'static Stack) -> ! {
stdio::stdout = stdio::default_stdout.get(); stdio::stdout = stdio::default_stdout.get();
stdio::stderr = stdio::default_stderr.get(); stdio::stderr = stdio::default_stderr.get();
// Initialize pthreads
pthread_init();
// Call init section // Call init section
_init(); _init();
......
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