1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * This file is subject to the terms and conditions of the GNU General Public 3*4882a593Smuzhiyun * License. See the file "COPYING" in the main directory of this archive 4*4882a593Smuzhiyun * for more details. 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * Copyright (C) 2014, Imagination Technologies Ltd. 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * EVA functions for generic code 9*4882a593Smuzhiyun */ 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun #ifndef _ASM_EVA_H 12*4882a593Smuzhiyun #define _ASM_EVA_H 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun #include <kernel-entry-init.h> 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun #ifdef __ASSEMBLY__ 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun #ifdef CONFIG_EVA 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun /* 21*4882a593Smuzhiyun * EVA early init code 22*4882a593Smuzhiyun * 23*4882a593Smuzhiyun * Platforms must define their own 'platform_eva_init' macro in 24*4882a593Smuzhiyun * their kernel-entry-init.h header. This macro usually does the 25*4882a593Smuzhiyun * platform specific configuration of the segmentation registers, 26*4882a593Smuzhiyun * and it is normally called from assembly code. 27*4882a593Smuzhiyun * 28*4882a593Smuzhiyun */ 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun .macro eva_init 31*4882a593Smuzhiyun platform_eva_init 32*4882a593Smuzhiyun .endm 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun #else 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun .macro eva_init 37*4882a593Smuzhiyun .endm 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun #endif /* CONFIG_EVA */ 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun #endif /* __ASSEMBLY__ */ 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun #endif 44