18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 38c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 48c2ecf20Sopenharmony_ci * for more details. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * env.c: ARCS environment variable routines. 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Copyright (C) 1996 David S. Miller (davem@davemloft.net) 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci#include <linux/init.h> 118c2ecf20Sopenharmony_ci#include <linux/kernel.h> 128c2ecf20Sopenharmony_ci#include <linux/string.h> 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#include <asm/fw/arc/types.h> 158c2ecf20Sopenharmony_ci#include <asm/sgialib.h> 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciPCHAR __init 188c2ecf20Sopenharmony_ciArcGetEnvironmentVariable(CHAR *name) 198c2ecf20Sopenharmony_ci{ 208c2ecf20Sopenharmony_ci return (CHAR *) ARC_CALL1(get_evar, name); 218c2ecf20Sopenharmony_ci} 22