From 23f2b117aba2495cda43d55813d1b3aa1ca8e8e1 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 2 Jun 2024 02:39:30 +0800 Subject: [PATCH] dont use report_api inside the generation macro - just for debugging --- libs/xous-bio/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/xous-bio/src/lib.rs b/libs/xous-bio/src/lib.rs index 3db770741..7ebec518e 100644 --- a/libs/xous-bio/src/lib.rs +++ b/libs/xous-bio/src/lib.rs @@ -134,10 +134,12 @@ macro_rules! bio_code { static $name_start: *const u8; static $name_end: *const u8; } + /* unsafe { report_api($name_start as u32); report_api($name_end as u32); } + */ // skip the first 4 bytes, as they contain the loading offset unsafe { core::slice::from_raw_parts($name_start.add(4), ($name_end as usize) - ($name_start as usize) - 4)} }