interrupts.c 15 KB

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