root/include/asm-mips/bugs.h

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

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. check_wait
  2. check_bugs

   1 /*
   2  *  include/asm-mips/bugs.h
   3  *
   4  *  Copyright (C) 1995  Waldorf Electronics
   5  *  written by Ralf Baechle
   6  */
   7 #include <asm/bootinfo.h>
   8 
   9 /*
  10  * This is included by init/main.c to check for architecture-dependent bugs.
  11  *
  12  * Needs:
  13  *      void check_bugs(void);
  14  */
  15 
  16 extern struct bootinfo boot_info;
  17 
  18 static void check_wait(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  19 {
  20         printk("Checking for 'wait' instruction... ");
  21         switch(boot_info.cputype) {
  22                 case CPU_R4200: 
  23                 case CPU_R4600: 
  24                         wait_available = 1;
  25                         printk(" available.\n");
  26                         break;
  27                 default:
  28                         printk(" unavailable.\n");
  29                         break;
  30                 }
  31 }
  32 
  33 static void check_bugs(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  34 {
  35         check_wait();
  36 }

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