irq.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675
  1. /* $Id: irq.c,v 1.114 2001/12/11 04:55:51 davem Exp $
  2. * arch/sparc/kernel/irq.c: Interrupt request handling routines. On the
  3. * Sparc the IRQs are basically 'cast in stone'
  4. * and you are supposed to probe the prom's device
  5. * node trees to find out who's got which IRQ.
  6. *
  7. * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
  8. * Copyright (C) 1995 Miguel de Icaza (miguel@nuclecu.unam.mx)
  9. * Copyright (C) 1995,2002 Pete A. Zaitcev (zaitcev@yahoo.com)
  10. * Copyright (C) 1996 Dave Redman (djhr@tadpole.co.uk)
  11. * Copyright (C) 1998-2000 Anton Blanchard (anton@samba.org)
  12. */
  13. #include <linux/module.h>
  14. #include <linux/sched.h>
  15. #include <linux/ptrace.h>
  16. #include <linux/errno.h>
  17. #include <linux/linkage.h>
  18. #include <linux/kernel_stat.h>
  19. #include <linux/signal.h>
  20. #include <linux/sched.h>
  21. #include <linux/interrupt.h>
  22. #include <linux/slab.h>
  23. #include <linux/random.h>
  24. #include <linux/init.h>
  25. #include <linux/smp.h>
  26. #include <linux/delay.h>
  27. #include <linux/threads.h>
  28. #include <linux/spinlock.h>
  29. #include <linux/seq_file.h>
  30. #include <asm/ptrace.h>
  31. #include <asm/processor.h>
  32. #include <asm/system.h>
  33. #include <asm/psr.h>
  34. #include <asm/smp.h>
  35. #include <asm/vaddrs.h>
  36. #include <asm/timer.h>
  37. #include <asm/openprom.h>
  38. #include <asm/oplib.h>
  39. #include <asm/traps.h>
  40. #include <asm/irq.h>
  41. #include <asm/io.h>
  42. #include <asm/pgalloc.h>
  43. #include <asm/pgtable.h>
  44. #include <asm/pcic.h>
  45. #include <asm/cacheflush.h>
  46. #include <asm/irq_regs.h>
  47. #include "irq.h"
  48. #ifdef CONFIG_SMP
  49. #define SMP_NOP2 "nop; nop;\n\t"
  50. #define SMP_NOP3 "nop; nop; nop;\n\t"
  51. #else
  52. #define SMP_NOP2
  53. #define SMP_NOP3
  54. #endif /* SMP */
  55. unsigned long __raw_local_irq_save(void)
  56. {
  57. unsigned long retval;
  58. unsigned long tmp;
  59. __asm__ __volatile__(
  60. "rd %%psr, %0\n\t"
  61. SMP_NOP3 /* Sun4m + Cypress + SMP bug */
  62. "or %0, %2, %1\n\t"
  63. "wr %1, 0, %%psr\n\t"
  64. "nop; nop; nop\n"
  65. : "=&r" (retval), "=r" (tmp)
  66. : "i" (PSR_PIL)
  67. : "memory");
  68. return retval;
  69. }
  70. void raw_local_irq_enable(void)
  71. {
  72. unsigned long tmp;
  73. __asm__ __volatile__(
  74. "rd %%psr, %0\n\t"
  75. SMP_NOP3 /* Sun4m + Cypress + SMP bug */
  76. "andn %0, %1, %0\n\t"
  77. "wr %0, 0, %%psr\n\t"
  78. "nop; nop; nop\n"
  79. : "=&r" (tmp)
  80. : "i" (PSR_PIL)
  81. : "memory");
  82. }
  83. void raw_local_irq_restore(unsigned long old_psr)
  84. {
  85. unsigned long tmp;
  86. __asm__ __volatile__(
  87. "rd %%psr, %0\n\t"
  88. "and %2, %1, %2\n\t"
  89. SMP_NOP2 /* Sun4m + Cypress + SMP bug */
  90. "andn %0, %1, %0\n\t"
  91. "wr %0, %2, %%psr\n\t"
  92. "nop; nop; nop\n"
  93. : "=&r" (tmp)
  94. : "i" (PSR_PIL), "r" (old_psr)
  95. : "memory");
  96. }
  97. EXPORT_SYMBOL(__raw_local_irq_save);
  98. EXPORT_SYMBOL(raw_local_irq_enable);
  99. EXPORT_SYMBOL(raw_local_irq_restore);
  100. /*
  101. * Dave Redman (djhr@tadpole.co.uk)
  102. *
  103. * IRQ numbers.. These are no longer restricted to 15..
  104. *
  105. * this is done to enable SBUS cards and onboard IO to be masked
  106. * correctly. using the interrupt level isn't good enough.
  107. *
  108. * For example:
  109. * A device interrupting at sbus level6 and the Floppy both come in
  110. * at IRQ11, but enabling and disabling them requires writing to
  111. * different bits in the SLAVIO/SEC.
  112. *
  113. * As a result of these changes sun4m machines could now support
  114. * directed CPU interrupts using the existing enable/disable irq code
  115. * with tweaks.
  116. *
  117. */
  118. static void irq_panic(void)
  119. {
  120. extern char *cputypval;
  121. prom_printf("machine: %s doesn't have irq handlers defined!\n",cputypval);
  122. prom_halt();
  123. }
  124. void (*sparc_init_timers)(irq_handler_t ) =
  125. (void (*)(irq_handler_t )) irq_panic;
  126. /*
  127. * Dave Redman (djhr@tadpole.co.uk)
  128. *
  129. * There used to be extern calls and hard coded values here.. very sucky!
  130. * instead, because some of the devices attach very early, I do something
  131. * equally sucky but at least we'll never try to free statically allocated
  132. * space or call kmalloc before kmalloc_init :(.
  133. *
  134. * In fact it's the timer10 that attaches first.. then timer14
  135. * then kmalloc_init is called.. then the tty interrupts attach.
  136. * hmmm....
  137. *
  138. */
  139. #define MAX_STATIC_ALLOC 4
  140. struct irqaction static_irqaction[MAX_STATIC_ALLOC];
  141. int static_irq_count;
  142. struct {
  143. struct irqaction *action;
  144. int flags;
  145. } sparc_irq[NR_IRQS];
  146. #define SPARC_IRQ_INPROGRESS 1
  147. /* Used to protect the IRQ action lists */
  148. DEFINE_SPINLOCK(irq_action_lock);
  149. int show_interrupts(struct seq_file *p, void *v)
  150. {
  151. int i = *(loff_t *) v;
  152. struct irqaction * action;
  153. unsigned long flags;
  154. #ifdef CONFIG_SMP
  155. int j;
  156. #endif
  157. if (sparc_cpu_model == sun4d) {
  158. extern int show_sun4d_interrupts(struct seq_file *, void *);
  159. return show_sun4d_interrupts(p, v);
  160. }
  161. spin_lock_irqsave(&irq_action_lock, flags);
  162. if (i < NR_IRQS) {
  163. action = sparc_irq[i].action;
  164. if (!action)
  165. goto out_unlock;
  166. seq_printf(p, "%3d: ", i);
  167. #ifndef CONFIG_SMP
  168. seq_printf(p, "%10u ", kstat_irqs(i));
  169. #else
  170. for_each_online_cpu(j) {
  171. seq_printf(p, "%10u ",
  172. kstat_cpu(j).irqs[i]);
  173. }
  174. #endif
  175. seq_printf(p, " %c %s",
  176. (action->flags & IRQF_DISABLED) ? '+' : ' ',
  177. action->name);
  178. for (action=action->next; action; action = action->next) {
  179. seq_printf(p, ",%s %s",
  180. (action->flags & IRQF_DISABLED) ? " +" : "",
  181. action->name);
  182. }
  183. seq_putc(p, '\n');
  184. }
  185. out_unlock:
  186. spin_unlock_irqrestore(&irq_action_lock, flags);
  187. return 0;
  188. }
  189. void free_irq(unsigned int irq, void *dev_id)
  190. {
  191. struct irqaction * action;
  192. struct irqaction **actionp;
  193. unsigned long flags;
  194. unsigned int cpu_irq;
  195. if (sparc_cpu_model == sun4d) {
  196. extern void sun4d_free_irq(unsigned int, void *);
  197. sun4d_free_irq(irq, dev_id);
  198. return;
  199. }
  200. cpu_irq = irq & (NR_IRQS - 1);
  201. if (cpu_irq > 14) { /* 14 irq levels on the sparc */
  202. printk("Trying to free bogus IRQ %d\n", irq);
  203. return;
  204. }
  205. spin_lock_irqsave(&irq_action_lock, flags);
  206. actionp = &sparc_irq[cpu_irq].action;
  207. action = *actionp;
  208. if (!action->handler) {
  209. printk("Trying to free free IRQ%d\n",irq);
  210. goto out_unlock;
  211. }
  212. if (dev_id) {
  213. for (; action; action = action->next) {
  214. if (action->dev_id == dev_id)
  215. break;
  216. actionp = &action->next;
  217. }
  218. if (!action) {
  219. printk("Trying to free free shared IRQ%d\n",irq);
  220. goto out_unlock;
  221. }
  222. } else if (action->flags & IRQF_SHARED) {
  223. printk("Trying to free shared IRQ%d with NULL device ID\n", irq);
  224. goto out_unlock;
  225. }
  226. if (action->flags & SA_STATIC_ALLOC)
  227. {
  228. /* This interrupt is marked as specially allocated
  229. * so it is a bad idea to free it.
  230. */
  231. printk("Attempt to free statically allocated IRQ%d (%s)\n",
  232. irq, action->name);
  233. goto out_unlock;
  234. }
  235. *actionp = action->next;
  236. spin_unlock_irqrestore(&irq_action_lock, flags);
  237. synchronize_irq(irq);
  238. spin_lock_irqsave(&irq_action_lock, flags);
  239. kfree(action);
  240. if (!sparc_irq[cpu_irq].action)
  241. __disable_irq(irq);
  242. out_unlock:
  243. spin_unlock_irqrestore(&irq_action_lock, flags);
  244. }
  245. EXPORT_SYMBOL(free_irq);
  246. /*
  247. * This is called when we want to synchronize with
  248. * interrupts. We may for example tell a device to
  249. * stop sending interrupts: but to make sure there
  250. * are no interrupts that are executing on another
  251. * CPU we need to call this function.
  252. */
  253. #ifdef CONFIG_SMP
  254. void synchronize_irq(unsigned int irq)
  255. {
  256. unsigned int cpu_irq;
  257. cpu_irq = irq & (NR_IRQS - 1);
  258. while (sparc_irq[cpu_irq].flags & SPARC_IRQ_INPROGRESS)
  259. cpu_relax();
  260. }
  261. #endif /* SMP */
  262. void unexpected_irq(int irq, void *dev_id, struct pt_regs * regs)
  263. {
  264. int i;
  265. struct irqaction * action;
  266. unsigned int cpu_irq;
  267. cpu_irq = irq & (NR_IRQS - 1);
  268. action = sparc_irq[cpu_irq].action;
  269. printk("IO device interrupt, irq = %d\n", irq);
  270. printk("PC = %08lx NPC = %08lx FP=%08lx\n", regs->pc,
  271. regs->npc, regs->u_regs[14]);
  272. if (action) {
  273. printk("Expecting: ");
  274. for (i = 0; i < 16; i++)
  275. if (action->handler)
  276. printk("[%s:%d:0x%x] ", action->name,
  277. (int) i, (unsigned int) action->handler);
  278. }
  279. printk("AIEEE\n");
  280. panic("bogus interrupt received");
  281. }
  282. void handler_irq(int irq, struct pt_regs * regs)
  283. {
  284. struct pt_regs *old_regs;
  285. struct irqaction * action;
  286. int cpu = smp_processor_id();
  287. #ifdef CONFIG_SMP
  288. extern void smp4m_irq_rotate(int cpu);
  289. #endif
  290. old_regs = set_irq_regs(regs);
  291. irq_enter();
  292. disable_pil_irq(irq);
  293. #ifdef CONFIG_SMP
  294. /* Only rotate on lower priority IRQs (scsi, ethernet, etc.). */
  295. if((sparc_cpu_model==sun4m) && (irq < 10))
  296. smp4m_irq_rotate(cpu);
  297. #endif
  298. action = sparc_irq[irq].action;
  299. sparc_irq[irq].flags |= SPARC_IRQ_INPROGRESS;
  300. kstat_cpu(cpu).irqs[irq]++;
  301. do {
  302. if (!action || !action->handler)
  303. unexpected_irq(irq, NULL, regs);
  304. action->handler(irq, action->dev_id);
  305. action = action->next;
  306. } while (action);
  307. sparc_irq[irq].flags &= ~SPARC_IRQ_INPROGRESS;
  308. enable_pil_irq(irq);
  309. irq_exit();
  310. set_irq_regs(old_regs);
  311. }
  312. #if defined(CONFIG_BLK_DEV_FD) || defined(CONFIG_BLK_DEV_FD_MODULE)
  313. /* Fast IRQs on the Sparc can only have one routine attached to them,
  314. * thus no sharing possible.
  315. */
  316. static int request_fast_irq(unsigned int irq,
  317. void (*handler)(void),
  318. unsigned long irqflags, const char *devname)
  319. {
  320. struct irqaction *action;
  321. unsigned long flags;
  322. unsigned int cpu_irq;
  323. int ret;
  324. #ifdef CONFIG_SMP
  325. struct tt_entry *trap_table;
  326. extern struct tt_entry trapbase_cpu1, trapbase_cpu2, trapbase_cpu3;
  327. #endif
  328. cpu_irq = irq & (NR_IRQS - 1);
  329. if(cpu_irq > 14) {
  330. ret = -EINVAL;
  331. goto out;
  332. }
  333. if(!handler) {
  334. ret = -EINVAL;
  335. goto out;
  336. }
  337. spin_lock_irqsave(&irq_action_lock, flags);
  338. action = sparc_irq[cpu_irq].action;
  339. if(action) {
  340. if(action->flags & IRQF_SHARED)
  341. panic("Trying to register fast irq when already shared.\n");
  342. if(irqflags & IRQF_SHARED)
  343. panic("Trying to register fast irq as shared.\n");
  344. /* Anyway, someone already owns it so cannot be made fast. */
  345. printk("request_fast_irq: Trying to register yet already owned.\n");
  346. ret = -EBUSY;
  347. goto out_unlock;
  348. }
  349. /* If this is flagged as statically allocated then we use our
  350. * private struct which is never freed.
  351. */
  352. if (irqflags & SA_STATIC_ALLOC) {
  353. if (static_irq_count < MAX_STATIC_ALLOC)
  354. action = &static_irqaction[static_irq_count++];
  355. else
  356. printk("Fast IRQ%d (%s) SA_STATIC_ALLOC failed using kmalloc\n",
  357. irq, devname);
  358. }
  359. if (action == NULL)
  360. action = kmalloc(sizeof(struct irqaction),
  361. GFP_ATOMIC);
  362. if (!action) {
  363. ret = -ENOMEM;
  364. goto out_unlock;
  365. }
  366. /* Dork with trap table if we get this far. */
  367. #define INSTANTIATE(table) \
  368. table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_one = SPARC_RD_PSR_L0; \
  369. table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_two = \
  370. SPARC_BRANCH((unsigned long) handler, \
  371. (unsigned long) &table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_two);\
  372. table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_three = SPARC_RD_WIM_L3; \
  373. table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_four = SPARC_NOP;
  374. INSTANTIATE(sparc_ttable)
  375. #ifdef CONFIG_SMP
  376. trap_table = &trapbase_cpu1; INSTANTIATE(trap_table)
  377. trap_table = &trapbase_cpu2; INSTANTIATE(trap_table)
  378. trap_table = &trapbase_cpu3; INSTANTIATE(trap_table)
  379. #endif
  380. #undef INSTANTIATE
  381. /*
  382. * XXX Correct thing whould be to flush only I- and D-cache lines
  383. * which contain the handler in question. But as of time of the
  384. * writing we have no CPU-neutral interface to fine-grained flushes.
  385. */
  386. flush_cache_all();
  387. action->flags = irqflags;
  388. cpus_clear(action->mask);
  389. action->name = devname;
  390. action->dev_id = NULL;
  391. action->next = NULL;
  392. sparc_irq[cpu_irq].action = action;
  393. __enable_irq(irq);
  394. ret = 0;
  395. out_unlock:
  396. spin_unlock_irqrestore(&irq_action_lock, flags);
  397. out:
  398. return ret;
  399. }
  400. /* These variables are used to access state from the assembler
  401. * interrupt handler, floppy_hardint, so we cannot put these in
  402. * the floppy driver image because that would not work in the
  403. * modular case.
  404. */
  405. volatile unsigned char *fdc_status;
  406. EXPORT_SYMBOL(fdc_status);
  407. char *pdma_vaddr;
  408. EXPORT_SYMBOL(pdma_vaddr);
  409. unsigned long pdma_size;
  410. EXPORT_SYMBOL(pdma_size);
  411. volatile int doing_pdma;
  412. EXPORT_SYMBOL(doing_pdma);
  413. char *pdma_base;
  414. EXPORT_SYMBOL(pdma_base);
  415. unsigned long pdma_areasize;
  416. EXPORT_SYMBOL(pdma_areasize);
  417. extern void floppy_hardint(void);
  418. static irqreturn_t (*floppy_irq_handler)(int irq, void *dev_id);
  419. void sparc_floppy_irq(int irq, void *dev_id, struct pt_regs *regs)
  420. {
  421. struct pt_regs *old_regs;
  422. int cpu = smp_processor_id();
  423. old_regs = set_irq_regs(regs);
  424. disable_pil_irq(irq);
  425. irq_enter();
  426. kstat_cpu(cpu).irqs[irq]++;
  427. floppy_irq_handler(irq, dev_id);
  428. irq_exit();
  429. enable_pil_irq(irq);
  430. set_irq_regs(old_regs);
  431. // XXX Eek, it's totally changed with preempt_count() and such
  432. // if (softirq_pending(cpu))
  433. // do_softirq();
  434. }
  435. int sparc_floppy_request_irq(int irq, unsigned long flags,
  436. irqreturn_t (*irq_handler)(int irq, void *))
  437. {
  438. floppy_irq_handler = irq_handler;
  439. return request_fast_irq(irq, floppy_hardint, flags, "floppy");
  440. }
  441. EXPORT_SYMBOL(sparc_floppy_request_irq);
  442. #endif
  443. int request_irq(unsigned int irq,
  444. irq_handler_t handler,
  445. unsigned long irqflags, const char * devname, void *dev_id)
  446. {
  447. struct irqaction * action, **actionp;
  448. unsigned long flags;
  449. unsigned int cpu_irq;
  450. int ret;
  451. if (sparc_cpu_model == sun4d) {
  452. extern int sun4d_request_irq(unsigned int,
  453. irq_handler_t ,
  454. unsigned long, const char *, void *);
  455. return sun4d_request_irq(irq, handler, irqflags, devname, dev_id);
  456. }
  457. cpu_irq = irq & (NR_IRQS - 1);
  458. if(cpu_irq > 14) {
  459. ret = -EINVAL;
  460. goto out;
  461. }
  462. if (!handler) {
  463. ret = -EINVAL;
  464. goto out;
  465. }
  466. spin_lock_irqsave(&irq_action_lock, flags);
  467. actionp = &sparc_irq[cpu_irq].action;
  468. action = *actionp;
  469. if (action) {
  470. if (!(action->flags & IRQF_SHARED) || !(irqflags & IRQF_SHARED)) {
  471. ret = -EBUSY;
  472. goto out_unlock;
  473. }
  474. if ((action->flags & IRQF_DISABLED) != (irqflags & IRQF_DISABLED)) {
  475. printk("Attempt to mix fast and slow interrupts on IRQ%d denied\n", irq);
  476. ret = -EBUSY;
  477. goto out_unlock;
  478. }
  479. for ( ; action; action = *actionp)
  480. actionp = &action->next;
  481. }
  482. /* If this is flagged as statically allocated then we use our
  483. * private struct which is never freed.
  484. */
  485. if (irqflags & SA_STATIC_ALLOC) {
  486. if (static_irq_count < MAX_STATIC_ALLOC)
  487. action = &static_irqaction[static_irq_count++];
  488. else
  489. printk("Request for IRQ%d (%s) SA_STATIC_ALLOC failed using kmalloc\n", irq, devname);
  490. }
  491. if (action == NULL)
  492. action = kmalloc(sizeof(struct irqaction),
  493. GFP_ATOMIC);
  494. if (!action) {
  495. ret = -ENOMEM;
  496. goto out_unlock;
  497. }
  498. action->handler = handler;
  499. action->flags = irqflags;
  500. cpus_clear(action->mask);
  501. action->name = devname;
  502. action->next = NULL;
  503. action->dev_id = dev_id;
  504. *actionp = action;
  505. __enable_irq(irq);
  506. ret = 0;
  507. out_unlock:
  508. spin_unlock_irqrestore(&irq_action_lock, flags);
  509. out:
  510. return ret;
  511. }
  512. EXPORT_SYMBOL(request_irq);
  513. void disable_irq_nosync(unsigned int irq)
  514. {
  515. return __disable_irq(irq);
  516. }
  517. EXPORT_SYMBOL(disable_irq_nosync);
  518. void disable_irq(unsigned int irq)
  519. {
  520. return __disable_irq(irq);
  521. }
  522. EXPORT_SYMBOL(disable_irq);
  523. void enable_irq(unsigned int irq)
  524. {
  525. return __enable_irq(irq);
  526. }
  527. EXPORT_SYMBOL(enable_irq);
  528. /* We really don't need these at all on the Sparc. We only have
  529. * stubs here because they are exported to modules.
  530. */
  531. unsigned long probe_irq_on(void)
  532. {
  533. return 0;
  534. }
  535. EXPORT_SYMBOL(probe_irq_on);
  536. int probe_irq_off(unsigned long mask)
  537. {
  538. return 0;
  539. }
  540. EXPORT_SYMBOL(probe_irq_off);
  541. /* djhr
  542. * This could probably be made indirect too and assigned in the CPU
  543. * bits of the code. That would be much nicer I think and would also
  544. * fit in with the idea of being able to tune your kernel for your machine
  545. * by removing unrequired machine and device support.
  546. *
  547. */
  548. void __init init_IRQ(void)
  549. {
  550. extern void sun4c_init_IRQ( void );
  551. extern void sun4m_init_IRQ( void );
  552. extern void sun4d_init_IRQ( void );
  553. switch(sparc_cpu_model) {
  554. case sun4c:
  555. case sun4:
  556. sun4c_init_IRQ();
  557. break;
  558. case sun4m:
  559. #ifdef CONFIG_PCI
  560. pcic_probe();
  561. if (pcic_present()) {
  562. sun4m_pci_init_IRQ();
  563. break;
  564. }
  565. #endif
  566. sun4m_init_IRQ();
  567. break;
  568. case sun4d:
  569. sun4d_init_IRQ();
  570. break;
  571. default:
  572. prom_printf("Cannot initialize IRQs on this Sun machine...");
  573. break;
  574. }
  575. btfixup();
  576. }
  577. void init_irq_proc(void)
  578. {
  579. /* For now, nothing... */
  580. }