interrupts.hh (7400:f6c9b27c4dbe) interrupts.hh (7847:0c6613ad8f18)
1/*
2 * Copyright (c) 2010 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

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

97
98 interrupts[int_num] = true;
99 intStatus |= ULL(1) << int_num;
100 }
101
102 void
103 clear(int int_num, int index)
104 {
1/*
2 * Copyright (c) 2010 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

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

97
98 interrupts[int_num] = true;
99 intStatus |= ULL(1) << int_num;
100 }
101
102 void
103 clear(int int_num, int index)
104 {
105 DPRINTF(Interrupt, "Interrupt %d:%d posted\n", int_num, index);
105 DPRINTF(Interrupt, "Interrupt %d:%d cleared\n", int_num, index);
106
107 if (int_num < 0 || int_num >= NumInterruptTypes)
108 panic("int_num out of bounds\n");
109
110 if (index != 0)
111 panic("No support for other interrupt indexes\n");
112
113 interrupts[int_num] = false;
114 intStatus &= ~(ULL(1) << int_num);
106
107 if (int_num < 0 || int_num >= NumInterruptTypes)
108 panic("int_num out of bounds\n");
109
110 if (index != 0)
111 panic("No support for other interrupt indexes\n");
112
113 interrupts[int_num] = false;
114 intStatus &= ~(ULL(1) << int_num);
115
116 }
117
118 void
119 clearAll()
120 {
121 DPRINTF(Interrupt, "Interrupts all cleared\n");
122 intStatus = 0;
123 memset(interrupts, 0, sizeof(interrupts));

--- 60 unchanged lines hidden ---
115 }
116
117 void
118 clearAll()
119 {
120 DPRINTF(Interrupt, "Interrupts all cleared\n");
121 intStatus = 0;
122 memset(interrupts, 0, sizeof(interrupts));

--- 60 unchanged lines hidden ---