/* SPDX-License-Identifier: GPL-2.0-only */ /* * Declarations for to Hexagon Virtal Machine. * * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
*/
#ifndef ASM_HEXAGON_VM_H #define ASM_HEXAGON_VM_H
/* * In principle, a Linux kernel for the VM could * selectively define the virtual instructions * as inline assembler macros, but for a first pass, * we'll use subroutines for both the VM and the native * kernels. It's costing a subroutine call/return, * but it makes for a single set of entry points * for tracing/debugging.
*/
void __vmrte(void); long __vmsetvec(void *); long __vmsetie(long); long __vmgetie(void); long __vmintop(enum VM_INT_OPS, long, long, long, long); long __vmclrmap(void *, unsignedlong); long __vmnewmap(void *); long __vmcache(enum VM_CACHE_OPS op, unsignedlong addr, unsignedlong len); unsignedlonglong __vmgettime(void); long __vmsettime(unsignedlonglong); long __vmstart(void *, void *); void __vmstop(void); long __vmwait(void); void __vmyield(void); long __vmvpid(void);
/* * The initial program gets to find a system environment descriptor * on its stack when it begins execution. The first word is a version * code to indicate what is there. Zero means nothing more.
*/
#define HEXAGON_VM_SED_NULL 0
/* * Event numbers for vector binding
*/
#define HVM_EV_RESET 0 #define HVM_EV_MACHCHECK 1 #define HVM_EV_GENEX 2 #define HVM_EV_TRAP 8 #define HVM_EV_INTR 15 /* These shoud be nuked as soon as we know the VM is up to spec v0.1.1 */ #define HVM_EV_INTR_0 16 #define HVM_MAX_INTR 240
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.