summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/traps.c
blob: 9302191c789e89e5dd8d1465ec46f0cc7ef1bfe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * arch/sparc/kernel/traps.c
 *
 * Copyright 1994 David S. Miller (davem@caip.rutgers.edu)
 */

/*
 * I hate traps on the sparc, grrr...
 */

#include <linux/sched.h>  /* for jiffies */
#include <linux/kernel.h>

void do_hw_interrupt(unsigned long type, unsigned long vector)
{
  if (vector == 14) {
    jiffies++;
    return;
  }

  /* Just print garbage for everything else for now. */

  printk("Unimplemented Sparc TRAP, vector = %lx type = %lx\n", vector, type);

  return;
}

extern unsigned long *trapbase;

void trap_init(void)
{

  /* load up the trap table */

#if 0 /* not yet */
  __asm__("wr %0, 0x0, %%tbr\n\t"
	  "nop; nop; nop\n\t" : :
	  "r" (trapbase));
#endif

  return;
}

void die_if_kernel(char * str, struct pt_regs * regs, long err)
{
  return;
}