1 /* $NetBSD: asm.h,v 1.3.4.1 2019/12/24 17:30:28 martin Exp $ */ 2 3 #ifndef _AARCH64_ASM_H_ 4 #define _AARCH64_ASM_H_ 5 6 #include <arm/asm.h> 7 8 #define fp x29 9 #define lr x30 10 11 /* 12 * Add a speculation barrier after the 'eret'. 13 * Some aarch64 cpus speculatively execute instructions after 'eret', 14 * and this potentiates side-channel attacks. 15 */ 16 #define ERET \ 17 eret; dsb sy; isb 18 19 #endif /* !_AARCH64_ASM_H_ */ 20