pc.cc (8739:925f15f96322) pc.cc (8741:491297d019f3)
1/*
2 * Copyright (c) 2008 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 41 unchanged lines hidden (view full) ---

50
51using namespace std;
52using namespace TheISA;
53
54Pc::Pc(const Params *p)
55 : Platform(p), system(p->system)
56{
57 southBridge = NULL;
1/*
2 * Copyright (c) 2008 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 41 unchanged lines hidden (view full) ---

50
51using namespace std;
52using namespace TheISA;
53
54Pc::Pc(const Params *p)
55 : Platform(p), system(p->system)
56{
57 southBridge = NULL;
58 // set the back pointer from the system to myself
59#if FULL_SYSTEM //XXX No platform pointer in SE mode.
60 system->platform = this;
61#endif
62}
63
64void
65Pc::init()
66{
67 assert(southBridge);
68
69 /*

--- 44 unchanged lines hidden (view full) ---

114 /*
115 * Mask the PICs. I'm presuming the BIOS/bootloader would have cleared
116 * these out and masked them before passing control to the OS.
117 */
118 southBridge->pic1->maskAll();
119 southBridge->pic2->maskAll();
120}
121
58}
59
60void
61Pc::init()
62{
63 assert(southBridge);
64
65 /*

--- 44 unchanged lines hidden (view full) ---

110 /*
111 * Mask the PICs. I'm presuming the BIOS/bootloader would have cleared
112 * these out and masked them before passing control to the OS.
113 */
114 southBridge->pic1->maskAll();
115 southBridge->pic2->maskAll();
116}
117
122Tick
123Pc::intrFrequency()
124{
125 panic("Need implementation for intrFrequency\n");
126 M5_DUMMY_RETURN
127}
128
129void
130Pc::postConsoleInt()
131{
132 southBridge->ioApic->signalInterrupt(4);
133 southBridge->pic1->signalInterrupt(4);
134}
135
136void

--- 50 unchanged lines hidden ---
118void
119Pc::postConsoleInt()
120{
121 southBridge->ioApic->signalInterrupt(4);
122 southBridge->pic1->signalInterrupt(4);
123}
124
125void

--- 50 unchanged lines hidden ---