Path: blob/master/arch/tile/include/hv/syscall_public.h
10818 views
/*1* Copyright 2010 Tilera Corporation. All Rights Reserved.2*3* This program is free software; you can redistribute it and/or4* modify it under the terms of the GNU General Public License5* as published by the Free Software Foundation, version 2.6*7* This program is distributed in the hope that it will be useful, but8* WITHOUT ANY WARRANTY; without even the implied warranty of9* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or10* NON INFRINGEMENT. See the GNU General Public License for11* more details.12*/1314/**15* @file syscall.h16* Indices for the hypervisor system calls that are intended to be called17* directly, rather than only through hypervisor-generated "glue" code.18*/1920#ifndef _SYS_HV_INCLUDE_SYSCALL_PUBLIC_H21#define _SYS_HV_INCLUDE_SYSCALL_PUBLIC_H2223/** Fast syscall flag bit location. When this bit is set, the hypervisor24* handles the syscall specially.25*/26#define HV_SYS_FAST_SHIFT 142728/** Fast syscall flag bit mask. */29#define HV_SYS_FAST_MASK (1 << HV_SYS_FAST_SHIFT)3031/** Bit location for flagging fast syscalls that can be called from PL0. */32#define HV_SYS_FAST_PLO_SHIFT 133334/** Fast syscall allowing PL0 bit mask. */35#define HV_SYS_FAST_PL0_MASK (1 << HV_SYS_FAST_PLO_SHIFT)3637/** Perform an MF that waits for all victims to reach DRAM. */38#define HV_SYS_fence_incoherent (51 | HV_SYS_FAST_MASK \39| HV_SYS_FAST_PL0_MASK)4041#endif /* !_SYS_HV_INCLUDE_SYSCALL_PUBLIC_H */424344