Home
last modified time | relevance | path

Searched refs:csr (Results 1 – 1 of 1) sorted by relevance

/hal_telink-3.6.0-3.5.0-3.4.0/tlsr9/drivers/B91/
Dcore.h36 #define read_csr(var, csr) __asm__ volatile ("csrr %0, %1" : "=r" (var) : "i" (csr)) argument
37 #define write_csr(csr, val) __asm__ volatile ("csrw %0, %1" :: "i" (csr), "r" (val)) argument
38 #define set_csr(csr, bit) __asm__ volatile ("csrs %0, %1" :: "i" (csr), "r" (bit)) argument
39 #define clear_csr(csr, bit) __asm__ volatile ("csrc %0, %1" :: "i" (csr), "r" (bit)) argument