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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [include/] [asm-mips/] [bugs.h] - Rev 1765

Compare with Previous | Blame | View Log

/*
 *  include/asm-mips/bugs.h
 *
 *  Copyright (C) 1995  Waldorf Electronics
 *  written by Ralf Baechle
 */
#include <asm/bootinfo.h>
 
/*
 * This is included by init/main.c to check for architecture-dependent bugs.
 *
 * Needs:
 *	void check_bugs(void);
 */
 
extern struct bootinfo boot_info;
 
static void check_wait(void)
{
	printk("Checking for 'wait' instruction... ");
	switch(boot_info.cputype) {
		case CPU_R4200: 
		case CPU_R4600: 
			wait_available = 1;
			printk(" available.\n");
			break;
		default:
			printk(" unavailable.\n");
			break;
		}
}
 
static void check_bugs(void)
{
	check_wait();
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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