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
  3. die_if_kernel

   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)
     /* [previous][next][first][last][top][bottom][index][help] */
  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)
     /* [previous][next][first][last][top][bottom][index][help] */
  31 {
  32 
  33   /* load up the trap table */
  34 
  35   __asm__("wr %0, 0x0, %%tbr\n\t"
  36           "nop; nop; nop\n\t" : :
  37           "r" (trapbase));
  38 
  39   return;
  40 }
  41 
  42 void die_if_kernel(char * str, struct pt_regs * regs, long err)
     /* [previous][next][first][last][top][bottom][index][help] */
  43 {
  44   return;
  45 }

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