operatingsystem.cc revision 12334:e0ab29a34764
112955Sgabeblack@google.com/* 212955Sgabeblack@google.com * Copyright (c) 2009 The Regents of The University of Michigan 312955Sgabeblack@google.com * All rights reserved. 412955Sgabeblack@google.com * 512955Sgabeblack@google.com * Redistribution and use in source and binary forms, with or without 612955Sgabeblack@google.com * modification, are permitted provided that the following conditions are 712955Sgabeblack@google.com * met: redistributions of source code must retain the above copyright 812955Sgabeblack@google.com * notice, this list of conditions and the following disclaimer; 912955Sgabeblack@google.com * redistributions in binary form must reproduce the above copyright 1012955Sgabeblack@google.com * notice, this list of conditions and the following disclaimer in the 1112955Sgabeblack@google.com * documentation and/or other materials provided with the distribution; 1212955Sgabeblack@google.com * neither the name of the copyright holders nor the names of its 1312955Sgabeblack@google.com * contributors may be used to endorse or promote products derived from 1412955Sgabeblack@google.com * this software without specific prior written permission. 1512955Sgabeblack@google.com * 1612955Sgabeblack@google.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1712955Sgabeblack@google.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1812955Sgabeblack@google.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1912955Sgabeblack@google.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2012955Sgabeblack@google.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2112955Sgabeblack@google.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2212955Sgabeblack@google.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2312955Sgabeblack@google.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2412955Sgabeblack@google.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2512955Sgabeblack@google.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2612955Sgabeblack@google.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2712955Sgabeblack@google.com * 2812955Sgabeblack@google.com * Authors: Ali Saidi 2912955Sgabeblack@google.com */ 3012955Sgabeblack@google.com 3112955Sgabeblack@google.com 3212988Sgabeblack@google.com#include "kern/operatingsystem.hh" 3312955Sgabeblack@google.com 3412955Sgabeblack@google.com#include "base/logging.hh" 3512955Sgabeblack@google.com 3612957Sgabeblack@google.comint 3712957Sgabeblack@google.comOperatingSystem::openSpecialFile(std::string path, Process *process, 3812955Sgabeblack@google.com ThreadContext *tc) 3912955Sgabeblack@google.com{ 4013086Sgabeblack@google.com warn("Attempting to open special file: %s. Ignoring. Simulation may" 4113086Sgabeblack@google.com " take un-expected code path or be non-deterministic until proper" 4212955Sgabeblack@google.com " handling is implemented.\n", path.c_str()); 4312955Sgabeblack@google.com return -1; 4412955Sgabeblack@google.com} 4512955Sgabeblack@google.com 4613086Sgabeblack@google.com 4712955Sgabeblack@google.com