2 * @file arch/x86/preempt_callback.S
4 * @brief Userspace callback for preƫmptive Time Warp
6 * This callback is used to transfer back control from kernel space to
7 * platform space when an APIC interrupt is received.
10 * Copyright (C) 2008-2019 HPDCS Group
11 * https://hpdcs.github.io
13 * This file is part of ROOT-Sim (ROme OpTimistic Simulator).
15 * ROOT-Sim is free software; you can redistribute it and/or modify it under the
16 * terms of the GNU General Public License as published by the Free Software
17 * Foundation; only version 3 of the License applies.
19 * ROOT-Sim is distributed in the hope that it will be useful, but WITHOUT ANY
20 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
21 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License along with
24 * ROOT-Sim; if not, write to the Free Software Foundation, Inc.,
25 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 * @author Alessandro Pellegrini
31 .file "preempt_callback.S"
33 .extern return_from_kernel
35 #ifdef HAVE_PREEMPTION
37 #include <arch/asm_defines.h>
40 .globl preempt_callback
41 .type preempt_callback, @function
101 .size preempt_callback, .-preempt_callback
103 #endif /* HAVE_PREEMPT */