home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / KERNEL-S / V1.2 / LINUX-1.2 / LINUX-1 / linux / include / asm-mips / bugs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-15  |  609 b   |  37 lines

  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)
  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)
  34. {
  35.     check_wait();
  36. }
  37.