root/arch/sparc/kernel/traps.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. do_hw_interrupt
  2. trap_init

   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 
  12 void do_hw_interrupt(unsigned long type, unsigned long vector)
     /* [previous][next][first][last][top][bottom][index][help] */
  13 {
  14   if (vector == 14) {
  15     jiffies++;
  16     return;
  17   }
  18 
  19   /* Just print garbage for everything else for now. */
  20 
  21   printk("Unimplemented Sparc TRAP, vector = %lx type = %lx\n", vector, type);
  22 
  23   return;
  24 }
  25 
  26 extern unsigned int *trapbase;
  27 
  28 void trap_init(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  29 {
  30 
  31   /* load up the trap table */
  32 
  33   __asm__("wr %0, 0x0, %%tbr\n\t"
  34           "nop; nop; nop\n\t" : :
  35           "r" (trapbase));
  36 
  37   return;
  38 }
  39 

/* [previous][next][first][last][top][bottom][index][help] */