system.hh revision 1885
12391SN/A/* 22391SN/A * Copyright (c) 2004-2005 The Regents of The University of Michigan 32391SN/A * All rights reserved. 42391SN/A * 52391SN/A * Redistribution and use in source and binary forms, with or without 62391SN/A * modification, are permitted provided that the following conditions are 72391SN/A * met: redistributions of source code must retain the above copyright 82391SN/A * notice, this list of conditions and the following disclaimer; 92391SN/A * redistributions in binary form must reproduce the above copyright 102391SN/A * notice, this list of conditions and the following disclaimer in the 112391SN/A * documentation and/or other materials provided with the distribution; 122391SN/A * neither the name of the copyright holders nor the names of its 132391SN/A * contributors may be used to endorse or promote products derived from 142391SN/A * this software without specific prior written permission. 152391SN/A * 162391SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 172391SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 182391SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 192391SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 202391SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 212391SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 222391SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 232391SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 242391SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 252391SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 262391SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272665Ssaidi@eecs.umich.edu */ 282665Ssaidi@eecs.umich.edu 292391SN/A#ifndef __KERN_FREEBSD_FREEBSD_SYSTEM_HH__ 302391SN/A#define __KERN_FREEBSD_FREEBSD_SYSTEM_HH__ 312391SN/A 322391SN/A#include "kern/system_events.hh" 332391SN/A 342391SN/Aclass FreebsdSystem : public System 352391SN/A{ 362391SN/A private: 374762Snate@binkert.org class SkipCalibrateClocksEvent : public SkipFuncEvent 384762Snate@binkert.org { 394762Snate@binkert.org public: 402391SN/A SkipCalibrateClocksEvent(PCEventQueue *q, const std::string &desc, 412462SN/A Addr addr) 422414SN/A : SkipFuncEvent(q, desc, addr) {} 432914Ssaidi@eecs.umich.edu virtual void process(ExecContext *xc); 444762Snate@binkert.org }; 452415SN/A 462462SN/A SkipFuncEvent *skipDelayEvent; 472391SN/A SkipCalibrateClocksEvent *skipCalibrateClocks; 482391SN/A 492391SN/A public: 502462SN/A FreebsdSystem(Params *p); 512391SN/A ~FreebsdSystem(); 522914Ssaidi@eecs.umich.edu void doCalibrateClocks(ExecContext *xc); 532413SN/A 542413SN/A}; 552413SN/A 562413SN/A#endif // __KERN_FREEBSD_FREEBSD_SYSTEM_HH__ 572413SN/A