interrupts.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  1. /*
  2. * (C) Copyright 2008-2011
  3. * Graeme Russ, <graeme.russ@gmail.com>
  4. *
  5. * (C) Copyright 2002
  6. * Daniel Engström, Omicron Ceti AB, <daniel@omicron.se>
  7. *
  8. * Portions of this file are derived from the Linux kernel source
  9. * Copyright (C) 1991, 1992 Linus Torvalds
  10. *
  11. * See file CREDITS for list of people who contributed to this
  12. * project.
  13. *
  14. * This program is free software; you can redistribute it and/or
  15. * modify it under the terms of the GNU General Public License as
  16. * published by the Free Software Foundation; either version 2 of
  17. * the License, or (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program; if not, write to the Free Software
  26. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  27. * MA 02111-1307 USA
  28. */
  29. #include <common.h>
  30. #include <asm/interrupt.h>
  31. #include <asm/io.h>
  32. #include <asm/processor-flags.h>
  33. #define DECLARE_INTERRUPT(x) \
  34. ".globl irq_"#x"\n" \
  35. ".hidden irq_"#x"\n" \
  36. ".type irq_"#x", @function\n" \
  37. "irq_"#x":\n" \
  38. "pushl $"#x"\n" \
  39. "jmp irq_common_entry\n"
  40. /*
  41. * Volatile isn't enough to prevent the compiler from reordering the
  42. * read/write functions for the control registers and messing everything up.
  43. * A memory clobber would solve the problem, but would prevent reordering of
  44. * all loads stores around it, which can hurt performance. Solution is to
  45. * use a variable and mimic reads and writes to it to enforce serialisation
  46. */
  47. static unsigned long __force_order;
  48. static inline unsigned long read_cr0(void)
  49. {
  50. unsigned long val;
  51. asm volatile("mov %%cr0,%0\n\t" : "=r" (val), "=m" (__force_order));
  52. return val;
  53. }
  54. static inline unsigned long read_cr2(void)
  55. {
  56. unsigned long val;
  57. asm volatile("mov %%cr2,%0\n\t" : "=r" (val), "=m" (__force_order));
  58. return val;
  59. }
  60. static inline unsigned long read_cr3(void)
  61. {
  62. unsigned long val;
  63. asm volatile("mov %%cr3,%0\n\t" : "=r" (val), "=m" (__force_order));
  64. return val;
  65. }
  66. static inline unsigned long read_cr4(void)
  67. {
  68. unsigned long val;
  69. asm volatile("mov %%cr4,%0\n\t" : "=r" (val), "=m" (__force_order));
  70. return val;
  71. }
  72. static inline unsigned long get_debugreg(int regno)
  73. {
  74. unsigned long val = 0; /* Damn you, gcc! */
  75. switch (regno) {
  76. case 0:
  77. asm("mov %%db0, %0" :"=r" (val));
  78. break;
  79. case 1:
  80. asm("mov %%db1, %0" :"=r" (val));
  81. break;
  82. case 2:
  83. asm("mov %%db2, %0" :"=r" (val));
  84. break;
  85. case 3:
  86. asm("mov %%db3, %0" :"=r" (val));
  87. break;
  88. case 6:
  89. asm("mov %%db6, %0" :"=r" (val));
  90. break;
  91. case 7:
  92. asm("mov %%db7, %0" :"=r" (val));
  93. break;
  94. default:
  95. val = 0;
  96. }
  97. return val;
  98. }
  99. void dump_regs(struct irq_regs *regs)
  100. {
  101. unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L;
  102. unsigned long d0, d1, d2, d3, d6, d7;
  103. unsigned long sp;
  104. printf("EIP: %04x:[<%08lx>] EFLAGS: %08lx\n",
  105. (u16)regs->xcs, regs->eip, regs->eflags);
  106. printf("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n",
  107. regs->eax, regs->ebx, regs->ecx, regs->edx);
  108. printf("ESI: %08lx EDI: %08lx EBP: %08lx ESP: %08lx\n",
  109. regs->esi, regs->edi, regs->ebp, regs->esp);
  110. printf(" DS: %04x ES: %04x FS: %04x GS: %04x SS: %04x\n",
  111. (u16)regs->xds, (u16)regs->xes, (u16)regs->xfs, (u16)regs->xgs, (u16)regs->xss);
  112. cr0 = read_cr0();
  113. cr2 = read_cr2();
  114. cr3 = read_cr3();
  115. cr4 = read_cr4();
  116. printf("CR0: %08lx CR2: %08lx CR3: %08lx CR4: %08lx\n",
  117. cr0, cr2, cr3, cr4);
  118. d0 = get_debugreg(0);
  119. d1 = get_debugreg(1);
  120. d2 = get_debugreg(2);
  121. d3 = get_debugreg(3);
  122. printf("DR0: %08lx DR1: %08lx DR2: %08lx DR3: %08lx\n",
  123. d0, d1, d2, d3);
  124. d6 = get_debugreg(6);
  125. d7 = get_debugreg(7);
  126. printf("DR6: %08lx DR7: %08lx\n",
  127. d6, d7);
  128. printf("Stack:\n");
  129. sp = regs->esp;
  130. sp += 64;
  131. while (sp > (regs->esp - 16)) {
  132. if (sp == regs->esp)
  133. printf("--->");
  134. else
  135. printf(" ");
  136. printf("0x%8.8lx : 0x%8.8lx\n", sp, (ulong)readl(sp));
  137. sp -= 4;
  138. }
  139. }
  140. struct idt_entry {
  141. u16 base_low;
  142. u16 selector;
  143. u8 res;
  144. u8 access;
  145. u16 base_high;
  146. } __attribute__ ((packed));
  147. struct desc_ptr {
  148. unsigned short size;
  149. unsigned long address;
  150. unsigned short segment;
  151. } __attribute__((packed));
  152. struct idt_entry idt[256];
  153. struct desc_ptr idt_ptr;
  154. static inline void load_idt(const struct desc_ptr *dtr)
  155. {
  156. asm volatile("cs lidt %0"::"m" (*dtr));
  157. }
  158. void set_vector(u8 intnum, void *routine)
  159. {
  160. idt[intnum].base_high = (u16)((u32)(routine) >> 16);
  161. idt[intnum].base_low = (u16)((u32)(routine) & 0xffff);
  162. }
  163. void irq_0(void);
  164. void irq_1(void);
  165. int cpu_init_interrupts(void)
  166. {
  167. int i;
  168. int irq_entry_size = irq_1 - irq_0;
  169. void *irq_entry = (void *)irq_0;
  170. /* Just in case... */
  171. disable_interrupts();
  172. /* Setup the IDT */
  173. for (i=0;i<256;i++) {
  174. idt[i].access = 0x8e;
  175. idt[i].res = 0;
  176. idt[i].selector = 0x10;
  177. set_vector(i, irq_entry);
  178. irq_entry += irq_entry_size;
  179. }
  180. idt_ptr.size = 256 * 8;
  181. idt_ptr.address = (unsigned long) idt;
  182. idt_ptr.segment = 0x18;
  183. load_idt(&idt_ptr);
  184. /* It is now safe to enable interrupts */
  185. enable_interrupts();
  186. return 0;
  187. }
  188. void __do_irq(int irq)
  189. {
  190. printf("Unhandled IRQ : %d\n", irq);
  191. }
  192. void do_irq(int irq) __attribute__((weak, alias("__do_irq")));
  193. void enable_interrupts(void)
  194. {
  195. asm("sti\n");
  196. }
  197. int disable_interrupts(void)
  198. {
  199. long flags;
  200. asm volatile ("pushfl ; popl %0 ; cli\n" : "=g" (flags) : );
  201. return flags & X86_EFLAGS_IF; /* IE flags is bit 9 */
  202. }
  203. /* IRQ Low-Level Service Routine */
  204. void irq_llsr(struct irq_regs *regs)
  205. {
  206. /*
  207. * For detailed description of each exception, refer to:
  208. * Intel® 64 and IA-32 Architectures Software Developer's Manual
  209. * Volume 1: Basic Architecture
  210. * Order Number: 253665-029US, November 2008
  211. * Table 6-1. Exceptions and Interrupts
  212. */
  213. switch (regs->irq_id) {
  214. case 0x00:
  215. printf("Divide Error (Division by zero)\n");
  216. dump_regs(regs);
  217. while(1);
  218. break;
  219. case 0x01:
  220. printf("Debug Interrupt (Single step)\n");
  221. dump_regs(regs);
  222. break;
  223. case 0x02:
  224. printf("NMI Interrupt\n");
  225. dump_regs(regs);
  226. break;
  227. case 0x03:
  228. printf("Breakpoint\n");
  229. dump_regs(regs);
  230. break;
  231. case 0x04:
  232. printf("Overflow\n");
  233. dump_regs(regs);
  234. while(1);
  235. break;
  236. case 0x05:
  237. printf("BOUND Range Exceeded\n");
  238. dump_regs(regs);
  239. while(1);
  240. break;
  241. case 0x06:
  242. printf("Invalid Opcode (UnDefined Opcode)\n");
  243. dump_regs(regs);
  244. while(1);
  245. break;
  246. case 0x07:
  247. printf("Device Not Available (No Math Coprocessor)\n");
  248. dump_regs(regs);
  249. while(1);
  250. break;
  251. case 0x08:
  252. printf("Double fault\n");
  253. dump_regs(regs);
  254. while(1);
  255. break;
  256. case 0x09:
  257. printf("Co-processor segment overrun\n");
  258. dump_regs(regs);
  259. while(1);
  260. break;
  261. case 0x0a:
  262. printf("Invalid TSS\n");
  263. dump_regs(regs);
  264. break;
  265. case 0x0b:
  266. printf("Segment Not Present\n");
  267. dump_regs(regs);
  268. while(1);
  269. break;
  270. case 0x0c:
  271. printf("Stack Segment Fault\n");
  272. dump_regs(regs);
  273. while(1);
  274. break;
  275. case 0x0d:
  276. printf("General Protection\n");
  277. dump_regs(regs);
  278. break;
  279. case 0x0e:
  280. printf("Page fault\n");
  281. dump_regs(regs);
  282. while(1);
  283. break;
  284. case 0x0f:
  285. printf("Floating-Point Error (Math Fault)\n");
  286. dump_regs(regs);
  287. break;
  288. case 0x10:
  289. printf("Alignment check\n");
  290. dump_regs(regs);
  291. break;
  292. case 0x11:
  293. printf("Machine Check\n");
  294. dump_regs(regs);
  295. break;
  296. case 0x12:
  297. printf("SIMD Floating-Point Exception\n");
  298. dump_regs(regs);
  299. break;
  300. case 0x13:
  301. case 0x14:
  302. case 0x15:
  303. case 0x16:
  304. case 0x17:
  305. case 0x18:
  306. case 0x19:
  307. case 0x1a:
  308. case 0x1b:
  309. case 0x1c:
  310. case 0x1d:
  311. case 0x1e:
  312. case 0x1f:
  313. printf("Reserved Exception\n");
  314. dump_regs(regs);
  315. break;
  316. default:
  317. /* Hardware or User IRQ */
  318. do_irq(regs->irq_id);
  319. }
  320. }
  321. /*
  322. * OK - This looks really horrible, but it serves a purpose - It helps create
  323. * fully relocatable code.
  324. * - The call to irq_llsr will be a relative jump
  325. * - The IRQ entries will be guaranteed to be in order
  326. * Interrupt entries are now very small (a push and a jump) but they are
  327. * now slower (all registers pushed on stack which provides complete
  328. * crash dumps in the low level handlers
  329. *
  330. * Interrupt Entry Point:
  331. * - Interrupt has caused eflags, CS and EIP to be pushed
  332. * - Interrupt Vector Handler has pushed orig_eax
  333. * - pt_regs.esp needs to be adjusted by 40 bytes:
  334. * 12 bytes pushed by CPU (EFLAGSF, CS, EIP)
  335. * 4 bytes pushed by vector handler (irq_id)
  336. * 24 bytes pushed before SP (SS, GS, FS, ES, DS, EAX)
  337. * NOTE: Only longs are pushed on/popped off the stack!
  338. */
  339. asm(".globl irq_common_entry\n" \
  340. ".hidden irq_common_entry\n" \
  341. ".type irq_common_entry, @function\n" \
  342. "irq_common_entry:\n" \
  343. "cld\n" \
  344. "pushl %ss\n" \
  345. "pushl %gs\n" \
  346. "pushl %fs\n" \
  347. "pushl %es\n" \
  348. "pushl %ds\n" \
  349. "pushl %eax\n" \
  350. "movl %esp, %eax\n" \
  351. "addl $40, %eax\n" \
  352. "pushl %eax\n" \
  353. "pushl %ebp\n" \
  354. "pushl %edi\n" \
  355. "pushl %esi\n" \
  356. "pushl %edx\n" \
  357. "pushl %ecx\n" \
  358. "pushl %ebx\n" \
  359. "mov %esp, %eax\n" \
  360. "call irq_llsr\n" \
  361. "popl %ebx\n" \
  362. "popl %ecx\n" \
  363. "popl %edx\n" \
  364. "popl %esi\n" \
  365. "popl %edi\n" \
  366. "popl %ebp\n" \
  367. "popl %eax\n" \
  368. "popl %eax\n" \
  369. "popl %ds\n" \
  370. "popl %es\n" \
  371. "popl %fs\n" \
  372. "popl %gs\n" \
  373. "popl %ss\n" \
  374. "add $4, %esp\n" \
  375. "iret\n" \
  376. DECLARE_INTERRUPT(0) \
  377. DECLARE_INTERRUPT(1) \
  378. DECLARE_INTERRUPT(2) \
  379. DECLARE_INTERRUPT(3) \
  380. DECLARE_INTERRUPT(4) \
  381. DECLARE_INTERRUPT(5) \
  382. DECLARE_INTERRUPT(6) \
  383. DECLARE_INTERRUPT(7) \
  384. DECLARE_INTERRUPT(8) \
  385. DECLARE_INTERRUPT(9) \
  386. DECLARE_INTERRUPT(10) \
  387. DECLARE_INTERRUPT(11) \
  388. DECLARE_INTERRUPT(12) \
  389. DECLARE_INTERRUPT(13) \
  390. DECLARE_INTERRUPT(14) \
  391. DECLARE_INTERRUPT(15) \
  392. DECLARE_INTERRUPT(16) \
  393. DECLARE_INTERRUPT(17) \
  394. DECLARE_INTERRUPT(18) \
  395. DECLARE_INTERRUPT(19) \
  396. DECLARE_INTERRUPT(20) \
  397. DECLARE_INTERRUPT(21) \
  398. DECLARE_INTERRUPT(22) \
  399. DECLARE_INTERRUPT(23) \
  400. DECLARE_INTERRUPT(24) \
  401. DECLARE_INTERRUPT(25) \
  402. DECLARE_INTERRUPT(26) \
  403. DECLARE_INTERRUPT(27) \
  404. DECLARE_INTERRUPT(28) \
  405. DECLARE_INTERRUPT(29) \
  406. DECLARE_INTERRUPT(30) \
  407. DECLARE_INTERRUPT(31) \
  408. DECLARE_INTERRUPT(32) \
  409. DECLARE_INTERRUPT(33) \
  410. DECLARE_INTERRUPT(34) \
  411. DECLARE_INTERRUPT(35) \
  412. DECLARE_INTERRUPT(36) \
  413. DECLARE_INTERRUPT(37) \
  414. DECLARE_INTERRUPT(38) \
  415. DECLARE_INTERRUPT(39) \
  416. DECLARE_INTERRUPT(40) \
  417. DECLARE_INTERRUPT(41) \
  418. DECLARE_INTERRUPT(42) \
  419. DECLARE_INTERRUPT(43) \
  420. DECLARE_INTERRUPT(44) \
  421. DECLARE_INTERRUPT(45) \
  422. DECLARE_INTERRUPT(46) \
  423. DECLARE_INTERRUPT(47) \
  424. DECLARE_INTERRUPT(48) \
  425. DECLARE_INTERRUPT(49) \
  426. DECLARE_INTERRUPT(50) \
  427. DECLARE_INTERRUPT(51) \
  428. DECLARE_INTERRUPT(52) \
  429. DECLARE_INTERRUPT(53) \
  430. DECLARE_INTERRUPT(54) \
  431. DECLARE_INTERRUPT(55) \
  432. DECLARE_INTERRUPT(56) \
  433. DECLARE_INTERRUPT(57) \
  434. DECLARE_INTERRUPT(58) \
  435. DECLARE_INTERRUPT(59) \
  436. DECLARE_INTERRUPT(60) \
  437. DECLARE_INTERRUPT(61) \
  438. DECLARE_INTERRUPT(62) \
  439. DECLARE_INTERRUPT(63) \
  440. DECLARE_INTERRUPT(64) \
  441. DECLARE_INTERRUPT(65) \
  442. DECLARE_INTERRUPT(66) \
  443. DECLARE_INTERRUPT(67) \
  444. DECLARE_INTERRUPT(68) \
  445. DECLARE_INTERRUPT(69) \
  446. DECLARE_INTERRUPT(70) \
  447. DECLARE_INTERRUPT(71) \
  448. DECLARE_INTERRUPT(72) \
  449. DECLARE_INTERRUPT(73) \
  450. DECLARE_INTERRUPT(74) \
  451. DECLARE_INTERRUPT(75) \
  452. DECLARE_INTERRUPT(76) \
  453. DECLARE_INTERRUPT(77) \
  454. DECLARE_INTERRUPT(78) \
  455. DECLARE_INTERRUPT(79) \
  456. DECLARE_INTERRUPT(80) \
  457. DECLARE_INTERRUPT(81) \
  458. DECLARE_INTERRUPT(82) \
  459. DECLARE_INTERRUPT(83) \
  460. DECLARE_INTERRUPT(84) \
  461. DECLARE_INTERRUPT(85) \
  462. DECLARE_INTERRUPT(86) \
  463. DECLARE_INTERRUPT(87) \
  464. DECLARE_INTERRUPT(88) \
  465. DECLARE_INTERRUPT(89) \
  466. DECLARE_INTERRUPT(90) \
  467. DECLARE_INTERRUPT(91) \
  468. DECLARE_INTERRUPT(92) \
  469. DECLARE_INTERRUPT(93) \
  470. DECLARE_INTERRUPT(94) \
  471. DECLARE_INTERRUPT(95) \
  472. DECLARE_INTERRUPT(97) \
  473. DECLARE_INTERRUPT(96) \
  474. DECLARE_INTERRUPT(98) \
  475. DECLARE_INTERRUPT(99) \
  476. DECLARE_INTERRUPT(100) \
  477. DECLARE_INTERRUPT(101) \
  478. DECLARE_INTERRUPT(102) \
  479. DECLARE_INTERRUPT(103) \
  480. DECLARE_INTERRUPT(104) \
  481. DECLARE_INTERRUPT(105) \
  482. DECLARE_INTERRUPT(106) \
  483. DECLARE_INTERRUPT(107) \
  484. DECLARE_INTERRUPT(108) \
  485. DECLARE_INTERRUPT(109) \
  486. DECLARE_INTERRUPT(110) \
  487. DECLARE_INTERRUPT(111) \
  488. DECLARE_INTERRUPT(112) \
  489. DECLARE_INTERRUPT(113) \
  490. DECLARE_INTERRUPT(114) \
  491. DECLARE_INTERRUPT(115) \
  492. DECLARE_INTERRUPT(116) \
  493. DECLARE_INTERRUPT(117) \
  494. DECLARE_INTERRUPT(118) \
  495. DECLARE_INTERRUPT(119) \
  496. DECLARE_INTERRUPT(120) \
  497. DECLARE_INTERRUPT(121) \
  498. DECLARE_INTERRUPT(122) \
  499. DECLARE_INTERRUPT(123) \
  500. DECLARE_INTERRUPT(124) \
  501. DECLARE_INTERRUPT(125) \
  502. DECLARE_INTERRUPT(126) \
  503. DECLARE_INTERRUPT(127) \
  504. DECLARE_INTERRUPT(128) \
  505. DECLARE_INTERRUPT(129) \
  506. DECLARE_INTERRUPT(130) \
  507. DECLARE_INTERRUPT(131) \
  508. DECLARE_INTERRUPT(132) \
  509. DECLARE_INTERRUPT(133) \
  510. DECLARE_INTERRUPT(134) \
  511. DECLARE_INTERRUPT(135) \
  512. DECLARE_INTERRUPT(136) \
  513. DECLARE_INTERRUPT(137) \
  514. DECLARE_INTERRUPT(138) \
  515. DECLARE_INTERRUPT(139) \
  516. DECLARE_INTERRUPT(140) \
  517. DECLARE_INTERRUPT(141) \
  518. DECLARE_INTERRUPT(142) \
  519. DECLARE_INTERRUPT(143) \
  520. DECLARE_INTERRUPT(144) \
  521. DECLARE_INTERRUPT(145) \
  522. DECLARE_INTERRUPT(146) \
  523. DECLARE_INTERRUPT(147) \
  524. DECLARE_INTERRUPT(148) \
  525. DECLARE_INTERRUPT(149) \
  526. DECLARE_INTERRUPT(150) \
  527. DECLARE_INTERRUPT(151) \
  528. DECLARE_INTERRUPT(152) \
  529. DECLARE_INTERRUPT(153) \
  530. DECLARE_INTERRUPT(154) \
  531. DECLARE_INTERRUPT(155) \
  532. DECLARE_INTERRUPT(156) \
  533. DECLARE_INTERRUPT(157) \
  534. DECLARE_INTERRUPT(158) \
  535. DECLARE_INTERRUPT(159) \
  536. DECLARE_INTERRUPT(160) \
  537. DECLARE_INTERRUPT(161) \
  538. DECLARE_INTERRUPT(162) \
  539. DECLARE_INTERRUPT(163) \
  540. DECLARE_INTERRUPT(164) \
  541. DECLARE_INTERRUPT(165) \
  542. DECLARE_INTERRUPT(166) \
  543. DECLARE_INTERRUPT(167) \
  544. DECLARE_INTERRUPT(168) \
  545. DECLARE_INTERRUPT(169) \
  546. DECLARE_INTERRUPT(170) \
  547. DECLARE_INTERRUPT(171) \
  548. DECLARE_INTERRUPT(172) \
  549. DECLARE_INTERRUPT(173) \
  550. DECLARE_INTERRUPT(174) \
  551. DECLARE_INTERRUPT(175) \
  552. DECLARE_INTERRUPT(176) \
  553. DECLARE_INTERRUPT(177) \
  554. DECLARE_INTERRUPT(178) \
  555. DECLARE_INTERRUPT(179) \
  556. DECLARE_INTERRUPT(180) \
  557. DECLARE_INTERRUPT(181) \
  558. DECLARE_INTERRUPT(182) \
  559. DECLARE_INTERRUPT(183) \
  560. DECLARE_INTERRUPT(184) \
  561. DECLARE_INTERRUPT(185) \
  562. DECLARE_INTERRUPT(186) \
  563. DECLARE_INTERRUPT(187) \
  564. DECLARE_INTERRUPT(188) \
  565. DECLARE_INTERRUPT(189) \
  566. DECLARE_INTERRUPT(190) \
  567. DECLARE_INTERRUPT(191) \
  568. DECLARE_INTERRUPT(192) \
  569. DECLARE_INTERRUPT(193) \
  570. DECLARE_INTERRUPT(194) \
  571. DECLARE_INTERRUPT(195) \
  572. DECLARE_INTERRUPT(196) \
  573. DECLARE_INTERRUPT(197) \
  574. DECLARE_INTERRUPT(198) \
  575. DECLARE_INTERRUPT(199) \
  576. DECLARE_INTERRUPT(200) \
  577. DECLARE_INTERRUPT(201) \
  578. DECLARE_INTERRUPT(202) \
  579. DECLARE_INTERRUPT(203) \
  580. DECLARE_INTERRUPT(204) \
  581. DECLARE_INTERRUPT(205) \
  582. DECLARE_INTERRUPT(206) \
  583. DECLARE_INTERRUPT(207) \
  584. DECLARE_INTERRUPT(208) \
  585. DECLARE_INTERRUPT(209) \
  586. DECLARE_INTERRUPT(210) \
  587. DECLARE_INTERRUPT(211) \
  588. DECLARE_INTERRUPT(212) \
  589. DECLARE_INTERRUPT(213) \
  590. DECLARE_INTERRUPT(214) \
  591. DECLARE_INTERRUPT(215) \
  592. DECLARE_INTERRUPT(216) \
  593. DECLARE_INTERRUPT(217) \
  594. DECLARE_INTERRUPT(218) \
  595. DECLARE_INTERRUPT(219) \
  596. DECLARE_INTERRUPT(220) \
  597. DECLARE_INTERRUPT(221) \
  598. DECLARE_INTERRUPT(222) \
  599. DECLARE_INTERRUPT(223) \
  600. DECLARE_INTERRUPT(224) \
  601. DECLARE_INTERRUPT(225) \
  602. DECLARE_INTERRUPT(226) \
  603. DECLARE_INTERRUPT(227) \
  604. DECLARE_INTERRUPT(228) \
  605. DECLARE_INTERRUPT(229) \
  606. DECLARE_INTERRUPT(230) \
  607. DECLARE_INTERRUPT(231) \
  608. DECLARE_INTERRUPT(232) \
  609. DECLARE_INTERRUPT(233) \
  610. DECLARE_INTERRUPT(234) \
  611. DECLARE_INTERRUPT(235) \
  612. DECLARE_INTERRUPT(236) \
  613. DECLARE_INTERRUPT(237) \
  614. DECLARE_INTERRUPT(238) \
  615. DECLARE_INTERRUPT(239) \
  616. DECLARE_INTERRUPT(240) \
  617. DECLARE_INTERRUPT(241) \
  618. DECLARE_INTERRUPT(242) \
  619. DECLARE_INTERRUPT(243) \
  620. DECLARE_INTERRUPT(244) \
  621. DECLARE_INTERRUPT(245) \
  622. DECLARE_INTERRUPT(246) \
  623. DECLARE_INTERRUPT(247) \
  624. DECLARE_INTERRUPT(248) \
  625. DECLARE_INTERRUPT(249) \
  626. DECLARE_INTERRUPT(250) \
  627. DECLARE_INTERRUPT(251) \
  628. DECLARE_INTERRUPT(252) \
  629. DECLARE_INTERRUPT(253) \
  630. DECLARE_INTERRUPT(254) \
  631. DECLARE_INTERRUPT(255));