system.hh revision 1885
17639Sgblack@eecs.umich.edu/*
27639Sgblack@eecs.umich.edu * Copyright (c) 2004-2005 The Regents of The University of Michigan
37639Sgblack@eecs.umich.edu * All rights reserved.
47639Sgblack@eecs.umich.edu *
57639Sgblack@eecs.umich.edu * Redistribution and use in source and binary forms, with or without
67639Sgblack@eecs.umich.edu * modification, are permitted provided that the following conditions are
77639Sgblack@eecs.umich.edu * met: redistributions of source code must retain the above copyright
87639Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer;
97639Sgblack@eecs.umich.edu * redistributions in binary form must reproduce the above copyright
107639Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the
117639Sgblack@eecs.umich.edu * documentation and/or other materials provided with the distribution;
127639Sgblack@eecs.umich.edu * neither the name of the copyright holders nor the names of its
137639Sgblack@eecs.umich.edu * contributors may be used to endorse or promote products derived from
147639Sgblack@eecs.umich.edu * this software without specific prior written permission.
157639Sgblack@eecs.umich.edu *
167639Sgblack@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
177639Sgblack@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
187639Sgblack@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
197639Sgblack@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
207639Sgblack@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
217639Sgblack@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
227639Sgblack@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
237639Sgblack@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
247639Sgblack@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
257639Sgblack@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
267639Sgblack@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
277639Sgblack@eecs.umich.edu */
287639Sgblack@eecs.umich.edu
297639Sgblack@eecs.umich.edu#ifndef __KERN_FREEBSD_FREEBSD_SYSTEM_HH__
307639Sgblack@eecs.umich.edu#define __KERN_FREEBSD_FREEBSD_SYSTEM_HH__
317639Sgblack@eecs.umich.edu
327639Sgblack@eecs.umich.edu#include "kern/system_events.hh"
337639Sgblack@eecs.umich.edu
347639Sgblack@eecs.umich.educlass FreebsdSystem : public System
357639Sgblack@eecs.umich.edu{
367639Sgblack@eecs.umich.edu  private:
377639Sgblack@eecs.umich.edu    class SkipCalibrateClocksEvent : public SkipFuncEvent
387639Sgblack@eecs.umich.edu    {
397639Sgblack@eecs.umich.edu      public:
407639Sgblack@eecs.umich.edu        SkipCalibrateClocksEvent(PCEventQueue *q, const std::string &desc,
417639Sgblack@eecs.umich.edu                                 Addr addr)
427639Sgblack@eecs.umich.edu            : SkipFuncEvent(q, desc, addr) {}
437639Sgblack@eecs.umich.edu        virtual void process(ExecContext *xc);
447639Sgblack@eecs.umich.edu    };
457639Sgblack@eecs.umich.edu
467639Sgblack@eecs.umich.edu    SkipFuncEvent *skipDelayEvent;
477639Sgblack@eecs.umich.edu    SkipCalibrateClocksEvent *skipCalibrateClocks;
487639Sgblack@eecs.umich.edu
497639Sgblack@eecs.umich.edu  public:
507639Sgblack@eecs.umich.edu    FreebsdSystem(Params *p);
517639Sgblack@eecs.umich.edu    ~FreebsdSystem();
527639Sgblack@eecs.umich.edu    void doCalibrateClocks(ExecContext *xc);
537639Sgblack@eecs.umich.edu
547639Sgblack@eecs.umich.edu};
557639Sgblack@eecs.umich.edu
567639Sgblack@eecs.umich.edu#endif // __KERN_FREEBSD_FREEBSD_SYSTEM_HH__
577639Sgblack@eecs.umich.edu