Deleted Added
sdiff udiff text old ( 5654:340254de2031 ) new ( 5655:74f76480407f )
full compact
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

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

55 * Authors: Gabe Black
56 */
57
58#ifndef __ARCH_X86_INTERRUPTS_HH__
59#define __ARCH_X86_INTERRUPTS_HH__
60
61#include "arch/x86/apicregs.hh"
62#include "arch/x86/faults.hh"
63#include "base/bitfield.hh"
64#include "cpu/thread_context.hh"
65#include "dev/io_device.hh"
66#include "dev/x86/intdev.hh"
67#include "params/X86LocalApic.hh"
68#include "sim/eventq.hh"
69
70class ThreadContext;

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

94 {
95 warn("Local APIC timer event doesn't do anything!\n");
96 }
97 };
98
99 ApicTimerEvent apicTimerEvent;
100
101 /*
102 * IRR and ISR maintenance.
103 */
104 uint8_t IRRV;
105 uint8_t ISRV;
106
107 int
108 findRegArrayMSB(ApicRegIndex base)
109 {

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

202 regs[reg] = val;
203 }
204
205 /*
206 * Constructor.
207 */
208
209 Interrupts(Params * p) : BasicPioDevice(p), IntDev(this),
210 latency(p->pio_latency), clock(0)
211 {
212 pioSize = PageBytes;
213 memset(regs, 0, sizeof(regs));
214 //Set the local apic DFR to the flat model.
215 regs[APIC_DESTINATION_FORMAT] = (uint32_t)(-1);
216 ISRV = 0;
217 IRRV = 0;
218 }

--- 46 unchanged lines hidden ---