Benign crates 1,158,803 installs Download

xtensa-lx 0.10.0

“Low-level access to Xtensa LX processors and peripherals”

Contains an unbounded block loopRust asm! inline assembly macro
SHA-25651cbb46c78cfd284c9378070ab90bae9d14d38b3766cb853a97c0a137f736d5b
MaleculeH(Mg)

Evidence

Contains an unbounded block loop timer.rs · lines 1–48
1//! Xtensa internal timers
2
3use core::arch::asm;
4
5#[inline]
6pub fn get_ccompare0() -> u32 {
7 let x: u32;
8 unsafe { asm!("rsr.ccompare0 {0}", out(reg) x, options(nostack)) };
9 x
10}
⋯38 lines
Rust asm! inline assembly macro interrupt.rs · lines 25–37
25:75… on
26#[inline]
27pub unsafe fn set_mask(mut mask: u32) -> u32 {
28 asm!("
29 xsr {0}, intenable
30 rsync
⋯7 lines
Rust asm! inline assembly macro lib.rs · lines 32–39
32:5… line(always)]
33pub unsafe fn set_vecbase(base: *const u32) {
34 asm!("wsr.vecbase {0}", in(reg) base, options(nostack));
35}
36
37/// Get the core stack pointer
38#[inline(always)]
39pub fn get_stack_pointer …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.