From 8dcad3e74dd01d9900960508b55f12fb1d41d7fa Mon Sep 17 00:00:00 2001 From: chrysn Date: Fri, 22 Nov 2024 11:12:41 +0100 Subject: [PATCH] shell: Drop old XFA mechanism See-Also: https://github.com/RIOT-OS/RIOT/pull/20958 See-Also: https://github.com/RIOT-OS/rust-riot-wrappers/pull/134 --- src/shell/mod.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/shell/mod.rs b/src/shell/mod.rs index f1d13ca..d0699c1 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -433,8 +433,6 @@ macro_rules! static_command { // thus static, and the_function is static by construction as well) unsafe impl Sync for StaticCommand {} - // Starting with https://github.com/RIOT-OS/RIOT/pull/20958 shell commands will be an - // array of the struct #[link_section = ".roxfa.shell_commands_xfa_v2.5"] #[export_name = concat!("shell_commands_xfa_v2_5_", stringify!($modname))] static THE_STRUCT: StaticCommand = StaticCommand($crate::riot_sys::shell_command_t { @@ -442,11 +440,6 @@ macro_rules! static_command { desc: $crate::cstr::cstr!($descr).as_ptr() as _, handler: Some(the_function), }); - // Before https://github.com/RIOT-OS/RIOT/pull/20958 shell commands was an array of - // pointers. We provide both and let the linker perform garbage collection. - #[link_section = ".roxfa.shell_commands_xfa.5"] - #[export_name = concat!("shell_commands_xfa_5_", stringify!($modname))] - static THE_POINTER: &StaticCommand = &THE_STRUCT; unsafe extern "C" fn the_function( argc: i32,