home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / KERNEL-S / V1.2 / LINUX-1.2 / LINUX-1 / linux / arch / sparc / kernel / traps.c < prev   
Encoding:
C/C++ Source or Header  |  1995-02-02  |  774 b   |  48 lines

  1. /*
  2.  * arch/sparc/kernel/traps.c
  3.  *
  4.  * Copyright 1994 David S. Miller (davem@caip.rutgers.edu)
  5.  */
  6.  
  7. /*
  8.  * I hate traps on the sparc, grrr...
  9.  */
  10.  
  11. #include <linux/sched.h>  /* for jiffies */
  12. #include <linux/kernel.h>
  13.  
  14. void do_hw_interrupt(unsigned long type, unsigned long vector)
  15. {
  16.   if (vector == 14) {
  17.     jiffies++;
  18.     return;
  19.   }
  20.  
  21.   /* Just print garbage for everything else for now. */
  22.  
  23.   printk("Unimplemented Sparc TRAP, vector = %lx type = %lx\n", vector, type);
  24.  
  25.   return;
  26. }
  27.  
  28. extern unsigned long *trapbase;
  29.  
  30. void trap_init(void)
  31. {
  32.  
  33.   /* load up the trap table */
  34.  
  35. #if 0 /* not yet */
  36.   __asm__("wr %0, 0x0, %%tbr\n\t"
  37.       "nop; nop; nop\n\t" : :
  38.       "r" (trapbase));
  39. #endif
  40.  
  41.   return;
  42. }
  43.  
  44. void die_if_kernel(char * str, struct pt_regs * regs, long err)
  45. {
  46.   return;
  47. }
  48.