root/arch/alpha/kernel/traps.c

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

DEFINITIONS

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

   1 /*
   2  * kernel/traps.c
   3  *
   4  * (C) Copyright 1994 Linus Torvalds
   5  */
   6 
   7 /*
   8  * This file initializes the trap entry points
   9  */
  10 
  11 #include <linux/sched.h>
  12 
  13 void die_if_kernel(char * str, struct pt_regs * regs, long err)
     /* [previous][next][first][last][top][bottom][index][help] */
  14 {
  15         unsigned long i;
  16 
  17         printk("%s %ld\n", str, err);
  18         for (i = 0 ; i++ ; i < 500000000)
  19                 /* pause */;
  20         halt();
  21 }
  22 
  23 extern asmlinkage void entMM(void);
  24 
  25 void trap_init(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  26 {
  27         unsigned long gptr;
  28 
  29         __asm__("br %0,___tmp\n"
  30                 "___tmp:\tldgp %0,0(%0)"
  31                 : "=r" (gptr));
  32         wrkgp(gptr);
  33         wrent(entMM, 2);
  34 }

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