1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Save registers before calling assembly functions. This avoids
4 * disturbance of register allocation in some inline assembly constructs.
5 * Copyright 2001,2002 by Andi Kleen, SuSE Labs.
7 #include <linux/linkage.h>
10 #include <asm/export.h>
12 /* rdi: arg1 ... normal C conventions. rax is saved/restored. */
13 .macro THUNK name, func
45 THUNK preempt_schedule_thunk, preempt_schedule
46 THUNK preempt_schedule_notrace_thunk, preempt_schedule_notrace
47 EXPORT_SYMBOL(preempt_schedule_thunk)
48 EXPORT_SYMBOL(preempt_schedule_notrace_thunk)