pc.cc (5654:340254de2031) | pc.cc (5829:2fdbb27f8c70) |
---|---|
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; --- 69 unchanged lines hidden (view full) --- 78 * Initialize the I/O APIC. 79 */ 80 I82094AA & ioApic = *southBridge->ioApic; 81 I82094AA::RedirTableEntry entry = 0; 82 entry.deliveryMode = DeliveryMode::ExtInt; 83 entry.vector = 0x20; 84 ioApic.writeReg(0x10, entry.bottomDW); 85 ioApic.writeReg(0x11, entry.topDW); | 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; --- 69 unchanged lines hidden (view full) --- 78 * Initialize the I/O APIC. 79 */ 80 I82094AA & ioApic = *southBridge->ioApic; 81 I82094AA::RedirTableEntry entry = 0; 82 entry.deliveryMode = DeliveryMode::ExtInt; 83 entry.vector = 0x20; 84 ioApic.writeReg(0x10, entry.bottomDW); 85 ioApic.writeReg(0x11, entry.topDW); |
86 entry.deliveryMode = DeliveryMode::Fixed; 87 entry.vector = 0x24; 88 ioApic.writeReg(0x18, entry.bottomDW); 89 ioApic.writeReg(0x19, entry.topDW); 90 entry.mask = 1; 91 entry.vector = 0x21; 92 ioApic.writeReg(0x12, entry.bottomDW); 93 ioApic.writeReg(0x13, entry.topDW); 94 entry.vector = 0x20; 95 ioApic.writeReg(0x14, entry.bottomDW); 96 ioApic.writeReg(0x15, entry.topDW); 97 entry.vector = 0x28; 98 ioApic.writeReg(0x20, entry.bottomDW); 99 ioApic.writeReg(0x21, entry.topDW); 100 entry.vector = 0x2C; 101 ioApic.writeReg(0x28, entry.bottomDW); 102 ioApic.writeReg(0x29, entry.topDW); |
|
86} 87 88Tick 89Pc::intrFrequency() 90{ 91 panic("Need implementation\n"); 92 M5_DUMMY_RETURN 93} --- 49 unchanged lines hidden --- | 103} 104 105Tick 106Pc::intrFrequency() 107{ 108 panic("Need implementation\n"); 109 M5_DUMMY_RETURN 110} --- 49 unchanged lines hidden --- |