Debian Codegraph @

grub-core/kern/x86_64/xen/hypercall.S

raw
1 /* hypercall.S - wrappers for Xen hypercalls */
2 /*
3 * GRUB -- GRand Unified Bootloader
4 * Copyright (C) 2011 Free Software Foundation, Inc.
5 *
6 * GRUB is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * GRUB is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #include <grub/symbol.h>
21 #include <grub/xen.h>
22
23 FUNCTION(grub_xen_sched_op)
24 movq $__HYPERVISOR_sched_op, %rax
25 syscall
26 ret
27
28 FUNCTION(grub_xen_event_channel_op)
29 movq $__HYPERVISOR_event_channel_op, %rax
30 syscall
31 ret
32
33 FUNCTION(grub_xen_update_va_mapping)
34 movq $__HYPERVISOR_update_va_mapping, %rax
35 syscall
36 ret
37
38 FUNCTION(grub_xen_mmuext_op)
39 movq %rcx, %r10
40 movq $__HYPERVISOR_mmuext_op, %rax
41 syscall
42 ret
43
44 FUNCTION(grub_xen_grant_table_op)
45 movq $__HYPERVISOR_grant_table_op, %rax
46 syscall
47 ret
48
49 FUNCTION(grub_xen_mmu_update)
50 movq %rcx, %r10
51 movq $__HYPERVISOR_mmu_update, %rax
52 syscall
53 ret