system.hh revision 2665
11782SN/A/*
21782SN/A * Copyright (c) 2004-2005 The Regents of The University of Michigan
31782SN/A * All rights reserved.
41782SN/A *
51782SN/A * Redistribution and use in source and binary forms, with or without
61782SN/A * modification, are permitted provided that the following conditions are
71782SN/A * met: redistributions of source code must retain the above copyright
81782SN/A * notice, this list of conditions and the following disclaimer;
91782SN/A * redistributions in binary form must reproduce the above copyright
101782SN/A * notice, this list of conditions and the following disclaimer in the
111782SN/A * documentation and/or other materials provided with the distribution;
121782SN/A * neither the name of the copyright holders nor the names of its
131782SN/A * contributors may be used to endorse or promote products derived from
141782SN/A * this software without specific prior written permission.
151782SN/A *
161782SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
171782SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
181782SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
191782SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
201782SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
211782SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
221782SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
231782SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
241782SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
251782SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
261782SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272665Ssaidi@eecs.umich.edu *
282665Ssaidi@eecs.umich.edu * Authors: Ben Nash
291782SN/A */
301782SN/A
311782SN/A#ifndef __KERN_FREEBSD_FREEBSD_SYSTEM_HH__
321782SN/A#define __KERN_FREEBSD_FREEBSD_SYSTEM_HH__
331782SN/A
341885SN/A#include "kern/system_events.hh"
351782SN/A
362212SN/Aclass FreebsdAlphaSystem : public AlphaSystem
371782SN/A{
381782SN/A  private:
391885SN/A    class SkipCalibrateClocksEvent : public SkipFuncEvent
401885SN/A    {
411885SN/A      public:
421885SN/A        SkipCalibrateClocksEvent(PCEventQueue *q, const std::string &desc,
431885SN/A                                 Addr addr)
441885SN/A            : SkipFuncEvent(q, desc, addr) {}
451885SN/A        virtual void process(ExecContext *xc);
461885SN/A    };
471885SN/A
481782SN/A    SkipFuncEvent *skipDelayEvent;
491885SN/A    SkipCalibrateClocksEvent *skipCalibrateClocks;
501821SN/A
511782SN/A  public:
522212SN/A    FreebsdAlphaSystem(Params *p);
532212SN/A    ~FreebsdAlphaSystem();
541821SN/A    void doCalibrateClocks(ExecContext *xc);
551782SN/A
561782SN/A};
571782SN/A
581821SN/A#endif // __KERN_FREEBSD_FREEBSD_SYSTEM_HH__
59