Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 
0003 #ifndef __ASM_CSKY_PERF_EVENT_H
0004 #define __ASM_CSKY_PERF_EVENT_H
0005 
0006 #include <abi/regdef.h>
0007 
0008 #define perf_arch_fetch_caller_regs(regs, __ip) { \
0009     (regs)->pc = (__ip); \
0010     regs_fp(regs) = (unsigned long) __builtin_frame_address(0); \
0011     asm volatile("mov %0, sp\n":"=r"((regs)->usp)); \
0012 }
0013 
0014 #endif /* __ASM_PERF_EVENT_ELF_H */