From 7387e42306b515d8310b0b4de78a9b41e09b6130 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 9 Jun 2020 12:57:13 +0800 Subject: [PATCH] provide __aeabi_l2d --- src/runtime/src/kernel.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime/src/kernel.rs b/src/runtime/src/kernel.rs index 4cd8dce5..a1568268 100644 --- a/src/runtime/src/kernel.rs +++ b/src/runtime/src/kernel.rs @@ -100,7 +100,7 @@ extern fn exception_unimplemented() { macro_rules! api { ($i:ident) => ({ extern { static $i: u8; } - api!($i = &$i as *const _) + unsafe { api!($i = &$i as *const _) } }); ($i:ident, $d:item) => ({ $d @@ -130,6 +130,8 @@ fn resolve(required: &[u8]) -> Option { api!(rtio_input_data = rtio::input_data), api!(rtio_input_timestamped_data = rtio::input_timestamped_data), + api!(__aeabi_l2d), + api!(_Unwind_Resume = exception_unimplemented), api!(__artiq_personality = exception_unimplemented), api!(__artiq_raise = exception_unimplemented),