linux.cc revision 11413
12155SN/A/* 22155SN/A * Copyright (c) 2011 ARM Limited 32155SN/A * All rights reserved 42155SN/A * 52155SN/A * The license below extends only to copyright in the software and shall 62155SN/A * not be construed as granting a license to any other intellectual 72155SN/A * property including but not limited to intellectual property relating 82155SN/A * to a hardware implementation of the functionality of the software 92155SN/A * licensed hereunder. You may use the software subject to the license 102155SN/A * terms below provided that you ensure that this notice is replicated 112155SN/A * unmodified and in its entirety in all distributions of the software, 122155SN/A * modified or unmodified, in source code or in binary form. 132155SN/A * 142155SN/A * Copyright (c) 2003-2005 The Regents of The University of Michigan 152155SN/A * Copyright (c) 2007-2008 The Florida State University 162155SN/A * All rights reserved. 172155SN/A * 182155SN/A * Redistribution and use in source and binary forms, with or without 192155SN/A * modification, are permitted provided that the following conditions are 202155SN/A * met: redistributions of source code must retain the above copyright 212155SN/A * notice, this list of conditions and the following disclaimer; 222155SN/A * redistributions in binary form must reproduce the above copyright 232155SN/A * notice, this list of conditions and the following disclaimer in the 242155SN/A * documentation and/or other materials provided with the distribution; 252155SN/A * neither the name of the copyright holders nor the names of its 262155SN/A * contributors may be used to endorse or promote products derived from 272155SN/A * this software without specific prior written permission. 282665Ssaidi@eecs.umich.edu * 292665Ssaidi@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 302155SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 312155SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 322155SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 332155SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 342155SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 352155SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 362155SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 372178SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 382178SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 392178SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 402178SN/A * 412178SN/A * Authors: Stephen Hines 422178SN/A */ 432178SN/A 442178SN/A#include "arch/arm/linux/linux.hh" 452178SN/A 462178SN/A#include <fcntl.h> 472178SN/A#include <sys/mman.h> 482178SN/A 492155SN/A#define TARGET ArmLinux32 502178SN/A#include "kern/linux/flag_tables.hh" 512155SN/A 522155SN/A#undef TARGET 532178SN/A#define TARGET ArmLinux64 542155SN/A#include "kern/linux/flag_tables.hh" 552155SN/A