From b16ec2c6a850565423136b5aaf07e2499ba06db0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 9 Jun 2020 12:56:58 +0800 Subject: [PATCH] provide mockups for all exception functions --- src/runtime/src/kernel.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/runtime/src/kernel.rs b/src/runtime/src/kernel.rs index 3234ccb6..4cd8dce5 100644 --- a/src/runtime/src/kernel.rs +++ b/src/runtime/src/kernel.rs @@ -93,6 +93,10 @@ extern fn rpc_recv(slot: *mut ()) -> usize { } } +extern fn exception_unimplemented() { + unimplemented!(); +} + macro_rules! api { ($i:ident) => ({ extern { static $i: u8; } @@ -126,7 +130,11 @@ fn resolve(required: &[u8]) -> Option { api!(rtio_input_data = rtio::input_data), api!(rtio_input_timestamped_data = rtio::input_timestamped_data), - api!(__artiq_personality = 0), // HACK + api!(_Unwind_Resume = exception_unimplemented), + api!(__artiq_personality = exception_unimplemented), + api!(__artiq_raise = exception_unimplemented), + api!(__artiq_reraise = exception_unimplemented), + ]; api.iter() .find(|&&(exported, _)| exported.as_bytes() == required)