/* SPDX-License-Identifier: GPL-2.0 */1#ifndef __VDSO_EXTABLE_H2#define __VDSO_EXTABLE_H34/*5* Inject exception fixup for vDSO code. Unlike normal exception fixup,6* vDSO uses a dedicated handler the addresses are relative to the overall7* exception table, not each individual entry.8*/9#ifdef __ASSEMBLER__10#define _ASM_VDSO_EXTABLE_HANDLE(from, to) \11ASM_VDSO_EXTABLE_HANDLE from to1213.macro ASM_VDSO_EXTABLE_HANDLE from:req to:req14.pushsection __ex_table, "a"15.long (\from) - __ex_table16.long (\to) - __ex_table17.popsection18.endm19#else20#define _ASM_VDSO_EXTABLE_HANDLE(from, to) \21".pushsection __ex_table, \"a\"\n" \22".long (" #from ") - __ex_table\n" \23".long (" #to ") - __ex_table\n" \24".popsection\n"25#endif2627#endif /* __VDSO_EXTABLE_H */282930