1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// SPDX-License-Identifier: MPL-2.0 //! Architecture dependent CPU-local information utilities. pub(crate) fn get_base() -> u64 { let mut gp; unsafe { core::arch::asm!( "move {gp}, $r21", gp = out(reg) gp, options(preserves_flags, nostack) ); } gp }