How to generate arm cmse code?

Hello,
I want to use rust to implement some function with arm cmse, for example like this:

pub fn get_control_ns() -> u32 {
  let result: u32;
  unsafe {
    asm!("MRS {}, control_ns", out(reg) result);
  }
  result
}

but there is no target_feature likes "8msecext" or "trustzone" in rustc, so the second operand is invalid, is there any workaround or can rust add some target_feature to arm's feature whitelist?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.