2 * Hexagon VM instruction support
4 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 and
8 * only version 2 as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 #include <linux/linkage.h>
22 #include <asm/hexagon_vm.h>
25 * C wrappers for virtual machine "instructions". These
26 * could be, and perhaps some day will be, handled as in-line
27 * macros, but for tracing/debugging it's handy to have
28 * a single point of invocation for each of them.
29 * Conveniently, they take paramters and return values
30 * consistent with the ABI calling convention.
34 trap1(#HVM_TRAP1_VMRTE);
38 trap1(#HVM_TRAP1_VMSETVEC);
42 trap1(#HVM_TRAP1_VMSETIE);
46 trap1(#HVM_TRAP1_VMGETIE);
50 trap1(#HVM_TRAP1_VMINTOP);
54 trap1(#HVM_TRAP1_VMCLRMAP);
58 r1 = #VM_NEWMAP_TYPE_PGTABLES;
59 trap1(#HVM_TRAP1_VMNEWMAP);
63 trap1(#HVM_TRAP1_VMCACHE);
67 trap1(#HVM_TRAP1_VMGETTIME);
71 trap1(#HVM_TRAP1_VMSETTIME);
75 trap1(#HVM_TRAP1_VMWAIT);
79 trap1(#HVM_TRAP1_VMYIELD);
83 trap1(#HVM_TRAP1_VMSTART);
87 trap1(#HVM_TRAP1_VMSTOP);
91 trap1(#HVM_TRAP1_VMVPID);
94 /* Probably not actually going to use these; see vm_entry.S */
97 trap1(#HVM_TRAP1_VMSETREGS);
101 trap1(#HVM_TRAP1_VMGETREGS);