12579SN/A/*
22579SN/A * Copyright (c) 2003-2005 The Regents of The University of Michigan
32579SN/A * All rights reserved.
42579SN/A *
52579SN/A * Redistribution and use in source and binary forms, with or without
62579SN/A * modification, are permitted provided that the following conditions are
72579SN/A * met: redistributions of source code must retain the above copyright
82579SN/A * notice, this list of conditions and the following disclaimer;
92579SN/A * redistributions in binary form must reproduce the above copyright
102579SN/A * notice, this list of conditions and the following disclaimer in the
112579SN/A * documentation and/or other materials provided with the distribution;
122579SN/A * neither the name of the copyright holders nor the names of its
132579SN/A * contributors may be used to endorse or promote products derived from
142579SN/A * this software without specific prior written permission.
152579SN/A *
162579SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172579SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182579SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192579SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202579SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212579SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222579SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232579SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242579SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252579SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262579SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272665Ssaidi@eecs.umich.edu *
282665Ssaidi@eecs.umich.edu * Authors: Gabe Black
292579SN/A */
302579SN/A
3111383Sbrandon.potter@amd.com#include "arch/sparc/linux/linux.hh"
3211383Sbrandon.potter@amd.com
338229Snate@binkert.org#include <fcntl.h>
3411383Sbrandon.potter@amd.com#include <sys/mman.h>
352579SN/A
3611413Ssteve.reinhardt@amd.com#define TARGET SparcLinux
3711413Ssteve.reinhardt@amd.com#include "kern/linux/flag_tables.hh"
38