Searched refs:sscratch (Results 1 – 2 of 2) sorted by relevance
267 unsigned long sscratch; in read_sscratch() local269 asm volatile("csrr %0, sscratch" : "=r" (sscratch)); in read_sscratch()271 return sscratch; in read_sscratch()274 static inline __noprof void write_sscratch(unsigned long sscratch) in write_sscratch() argument276 asm volatile("csrw sscratch, %0" : : "r" (sscratch)); in write_sscratch()
4564 DECLARE_CSR(sscratch, CSR_SSCRATCH)
Completed in 36 milliseconds