interrupts.hh (11175:2324ed5fa9f4) interrupts.hh (12124:6edbfe40f4e8)
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

87 Bitfield<15> trigger;
88 Bitfield<16> masked;
89 Bitfield<17> periodic;
90 EndBitUnion(LVTEntry)
91
92 /*
93 * Timing related stuff.
94 */
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

87 Bitfield<15> trigger;
88 Bitfield<16> masked;
89 Bitfield<17> periodic;
90 EndBitUnion(LVTEntry)
91
92 /*
93 * Timing related stuff.
94 */
95 class ApicTimerEvent : public Event
96 {
97 private:
98 Interrupts *localApic;
99 public:
100 ApicTimerEvent(Interrupts *_localApic) :
101 Event(), localApic(_localApic)
102 {}
95 EventFunctionWrapper apicTimerEvent;
96 void processApicTimerEvent();
103
97
104 void process()
105 {
106 assert(localApic);
107 if (localApic->triggerTimerInterrupt()) {
108 localApic->setReg(APIC_INITIAL_COUNT,
109 localApic->readReg(APIC_INITIAL_COUNT));
110 }
111 }
112 };
113
114 ApicTimerEvent apicTimerEvent;
115
116 /*
117 * A set of variables to keep track of interrupts that don't go through
118 * the IRR.
119 */
120 bool pendingSmi;
121 uint8_t smiVector;
122 bool pendingNmi;
123 uint8_t nmiVector;

--- 201 unchanged lines hidden ---
98 /*
99 * A set of variables to keep track of interrupts that don't go through
100 * the IRR.
101 */
102 bool pendingSmi;
103 uint8_t smiVector;
104 bool pendingNmi;
105 uint8_t nmiVector;

--- 201 unchanged lines hidden ---