OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [include/] [asm-mips/] [bugs.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.