interrupts.hh (5565:445da0b17433) | interrupts.hh (5567:8fc3b004b0df) |
---|---|
1/* 2 * Copyright (c) 2006 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; --- 64 unchanged lines hidden (view full) --- 73 intstatus |= (ULL(1) << int_num); 74 } 75 76 void 77 clear(int int_num, int index) 78 { 79 DPRINTF(Interrupt, "Interrupt %d:%d cleared\n", int_num, index); 80 | 1/* 2 * Copyright (c) 2006 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; --- 64 unchanged lines hidden (view full) --- 73 intstatus |= (ULL(1) << int_num); 74 } 75 76 void 77 clear(int int_num, int index) 78 { 79 DPRINTF(Interrupt, "Interrupt %d:%d cleared\n", int_num, index); 80 |
81 if (int_num < 0 || int_num >= TheISA::NumInterruptLevels) | 81 if (int_num < 0 || int_num >= AlphaISA::NumInterruptLevels) |
82 panic("int_num out of bounds\n"); 83 84 if (index < 0 || index >= (int)sizeof(uint64_t) * 8) 85 panic("int_num out of bounds\n"); 86 87 interrupts[int_num] &= ~(1 << index); 88 if (interrupts[int_num] == 0) 89 intstatus &= ~(ULL(1) << int_num); --- 97 unchanged lines hidden --- | 82 panic("int_num out of bounds\n"); 83 84 if (index < 0 || index >= (int)sizeof(uint64_t) * 8) 85 panic("int_num out of bounds\n"); 86 87 interrupts[int_num] &= ~(1 << index); 88 if (interrupts[int_num] == 0) 89 intstatus &= ~(ULL(1) << int_num); --- 97 unchanged lines hidden --- |