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 * env.c: ARCS environment variable routines. 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * Copyright (C) 1996 David S. Miller (davem@davemloft.net) 9*4882a593Smuzhiyun */ 10*4882a593Smuzhiyun #include <linux/init.h> 11*4882a593Smuzhiyun #include <linux/kernel.h> 12*4882a593Smuzhiyun #include <linux/string.h> 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun #include <asm/fw/arc/types.h> 15*4882a593Smuzhiyun #include <asm/sgialib.h> 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun PCHAR __init ArcGetEnvironmentVariable(CHAR * name)18*4882a593SmuzhiyunArcGetEnvironmentVariable(CHAR *name) 19*4882a593Smuzhiyun { 20*4882a593Smuzhiyun return (CHAR *) ARC_CALL1(get_evar, name); 21*4882a593Smuzhiyun } 22