The xpseudo_asm.h includes xreg_riscv.h and xpseudo_asm_gcc.h.
The xreg_riscv.h file contains definitions for inline assembler code. It provides inline definitions for RISC-V GPRs, CSRs, and Debug registers.
The xpseudo_asm_gcc.h contains the definitions for the most often used inline assembler instructions, available as macros. These can be very useful for tasks such as setting or getting special purpose registers, or synchronization. These inline assembler instructions can be used from drivers and user applications written in C.