From 9d497ad311864cc3794196c5b8eea88295116838 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 14 Jan 2025 22:55:06 +0200 Subject: [PATCH] Kernel: Cleanup interrupt stub definitions --- kernel/arch/i686/interrupts.S | 231 ++++---------------------------- kernel/arch/x86_64/interrupts.S | 231 ++++---------------------------- 2 files changed, 46 insertions(+), 416 deletions(-) diff --git a/kernel/arch/i686/interrupts.S b/kernel/arch/i686/interrupts.S index e0d70da6..3f2b6bb7 100644 --- a/kernel/arch/i686/interrupts.S +++ b/kernel/arch/i686/interrupts.S @@ -186,211 +186,26 @@ isr 29 isr 30 isr 31 -irq 0 -irq 1 -irq 2 -irq 3 -irq 4 -irq 5 -irq 6 -irq 7 -irq 8 -irq 9 -irq 10 -irq 11 -irq 12 -irq 13 -irq 14 -irq 15 -irq 16 -irq 17 -irq 18 -irq 19 -irq 20 -irq 21 -irq 22 -irq 23 -irq 24 -irq 25 -irq 26 -irq 27 -irq 28 -irq 29 -irq 30 -irq 31 -irq 32 -irq 33 -irq 34 -irq 35 -irq 36 -irq 37 -irq 38 -irq 39 -irq 40 -irq 41 -irq 42 -irq 43 -irq 44 -irq 45 -irq 46 -irq 47 -irq 48 -irq 49 -irq 50 -irq 51 -irq 52 -irq 53 -irq 54 -irq 55 -irq 56 -irq 57 -irq 58 -irq 59 -irq 60 -irq 61 -irq 62 -irq 63 -irq 64 -irq 65 -irq 66 -irq 67 -irq 68 -irq 69 -irq 70 -irq 71 -irq 72 -irq 73 -irq 74 -irq 75 -irq 76 -irq 77 -irq 78 -irq 79 -irq 80 -irq 81 -irq 82 -irq 83 -irq 84 -irq 85 -irq 86 -irq 87 -irq 88 -irq 89 -irq 90 -irq 91 -irq 92 -irq 93 -irq 94 -irq 95 -irq 96 -irq 97 -irq 98 -irq 99 -irq 100 -irq 101 -irq 102 -irq 103 -irq 104 -irq 105 -irq 106 -irq 107 -irq 108 -irq 109 -irq 110 -irq 111 -irq 112 -irq 113 -irq 114 -irq 115 -irq 116 -irq 117 -irq 118 -irq 119 -irq 120 -irq 121 -irq 122 -irq 123 -irq 124 -irq 125 -irq 126 -irq 127 -irq 128 -irq 129 -irq 130 -irq 131 -irq 132 -irq 133 -irq 134 -irq 135 -irq 136 -irq 137 -irq 138 -irq 139 -irq 140 -irq 141 -irq 142 -irq 143 -irq 144 -irq 145 -irq 146 -irq 147 -irq 148 -irq 149 -irq 150 -irq 151 -irq 152 -irq 153 -irq 154 -irq 155 -irq 156 -irq 157 -irq 158 -irq 159 -irq 160 -irq 161 -irq 162 -irq 163 -irq 164 -irq 165 -irq 166 -irq 167 -irq 168 -irq 169 -irq 170 -irq 171 -irq 172 -irq 173 -irq 174 -irq 175 -irq 176 -irq 177 -irq 178 -irq 179 -irq 180 -irq 181 -irq 182 -irq 183 -irq 184 -irq 185 -irq 186 -irq 187 -irq 188 -irq 189 -irq 190 -irq 191 -irq 192 -irq 193 -irq 194 -irq 195 -irq 196 -irq 197 -irq 198 -irq 199 -irq 200 -irq 201 -irq 202 -irq 203 -irq 204 -irq 205 -irq 206 -irq 207 +.irp i, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, \ + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, \ + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, \ + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, \ + 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, \ + 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, \ + 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, \ + 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, \ + 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, \ + 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, \ + 100,101,102,103,104,105,106,107,108,109, \ + 110,111,112,113,114,115,116,117,118,119, \ + 120,121,122,123,124,125,126,127,128,129, \ + 130,131,132,133,134,135,136,137,138,139, \ + 140,141,142,143,144,145,146,147,148,149, \ + 150,151,152,153,154,155,156,157,158,159, \ + 160,161,162,163,164,165,166,167,168,169, \ + 170,171,172,173,174,175,176,177,178,179, \ + 180,181,182,183,184,185,186,187,188,189, \ + 190,191,192,193,194,195,196,197,198,199, \ + 200,201,202,203,204,205,206,207 + irq \i +.endr diff --git a/kernel/arch/x86_64/interrupts.S b/kernel/arch/x86_64/interrupts.S index b20c143b..c394d5c0 100644 --- a/kernel/arch/x86_64/interrupts.S +++ b/kernel/arch/x86_64/interrupts.S @@ -140,211 +140,26 @@ isr 29 isr 30 isr 31 -irq 0 -irq 1 -irq 2 -irq 3 -irq 4 -irq 5 -irq 6 -irq 7 -irq 8 -irq 9 -irq 10 -irq 11 -irq 12 -irq 13 -irq 14 -irq 15 -irq 16 -irq 17 -irq 18 -irq 19 -irq 20 -irq 21 -irq 22 -irq 23 -irq 24 -irq 25 -irq 26 -irq 27 -irq 28 -irq 29 -irq 30 -irq 31 -irq 32 -irq 33 -irq 34 -irq 35 -irq 36 -irq 37 -irq 38 -irq 39 -irq 40 -irq 41 -irq 42 -irq 43 -irq 44 -irq 45 -irq 46 -irq 47 -irq 48 -irq 49 -irq 50 -irq 51 -irq 52 -irq 53 -irq 54 -irq 55 -irq 56 -irq 57 -irq 58 -irq 59 -irq 60 -irq 61 -irq 62 -irq 63 -irq 64 -irq 65 -irq 66 -irq 67 -irq 68 -irq 69 -irq 70 -irq 71 -irq 72 -irq 73 -irq 74 -irq 75 -irq 76 -irq 77 -irq 78 -irq 79 -irq 80 -irq 81 -irq 82 -irq 83 -irq 84 -irq 85 -irq 86 -irq 87 -irq 88 -irq 89 -irq 90 -irq 91 -irq 92 -irq 93 -irq 94 -irq 95 -irq 96 -irq 97 -irq 98 -irq 99 -irq 100 -irq 101 -irq 102 -irq 103 -irq 104 -irq 105 -irq 106 -irq 107 -irq 108 -irq 109 -irq 110 -irq 111 -irq 112 -irq 113 -irq 114 -irq 115 -irq 116 -irq 117 -irq 118 -irq 119 -irq 120 -irq 121 -irq 122 -irq 123 -irq 124 -irq 125 -irq 126 -irq 127 -irq 128 -irq 129 -irq 130 -irq 131 -irq 132 -irq 133 -irq 134 -irq 135 -irq 136 -irq 137 -irq 138 -irq 139 -irq 140 -irq 141 -irq 142 -irq 143 -irq 144 -irq 145 -irq 146 -irq 147 -irq 148 -irq 149 -irq 150 -irq 151 -irq 152 -irq 153 -irq 154 -irq 155 -irq 156 -irq 157 -irq 158 -irq 159 -irq 160 -irq 161 -irq 162 -irq 163 -irq 164 -irq 165 -irq 166 -irq 167 -irq 168 -irq 169 -irq 170 -irq 171 -irq 172 -irq 173 -irq 174 -irq 175 -irq 176 -irq 177 -irq 178 -irq 179 -irq 180 -irq 181 -irq 182 -irq 183 -irq 184 -irq 185 -irq 186 -irq 187 -irq 188 -irq 189 -irq 190 -irq 191 -irq 192 -irq 193 -irq 194 -irq 195 -irq 196 -irq 197 -irq 198 -irq 199 -irq 200 -irq 201 -irq 202 -irq 203 -irq 204 -irq 205 -irq 206 -irq 207 +.irp i, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, \ + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, \ + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, \ + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, \ + 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, \ + 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, \ + 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, \ + 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, \ + 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, \ + 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, \ + 100,101,102,103,104,105,106,107,108,109, \ + 110,111,112,113,114,115,116,117,118,119, \ + 120,121,122,123,124,125,126,127,128,129, \ + 130,131,132,133,134,135,136,137,138,139, \ + 140,141,142,143,144,145,146,147,148,149, \ + 150,151,152,153,154,155,156,157,158,159, \ + 160,161,162,163,164,165,166,167,168,169, \ + 170,171,172,173,174,175,176,177,178,179, \ + 180,181,182,183,184,185,186,187,188,189, \ + 190,191,192,193,194,195,196,197,198,199, \ + 200,201,202,203,204,205,206,207 + irq \i +.endr