patch-1.3.44 linux/include/asm-sparc/bugs.h
Next file: linux/include/asm-sparc/byteorder.h
Previous file: linux/include/asm-sparc/bsderrno.h
Back to the patch index
Back to the overall index
- Lines: 53
- Date:
Sat Nov 25 04:31:19 1995
- Orig file:
v1.3.43/linux/include/asm-sparc/bugs.h
- Orig date:
Tue Jun 27 14:11:45 1995
diff -u --recursive --new-file v1.3.43/linux/include/asm-sparc/bugs.h linux/include/asm-sparc/bugs.h
@@ -1,49 +1,7 @@
-/* include/asm-sparc/bugs.h: Sparc probes for various bugs.
+/* $Id: bugs.h,v 1.5 1995/11/25 02:31:18 davem Exp $
+ * include/asm-sparc/bugs.h: Sparc probes for various bugs.
*
* Copyright (C) 1994 David S. Miller (davem@caip.rutgers.edu)
*/
-/*
- * This is included by init/main.c to check for architecture-dependent bugs.
- *
- * Needs:
- * void check_bugs(void);
- */
-
-#define CONFIG_BUGSPARC
-
-#include <asm/openprom.h>
-#include <asm/page.h>
-
-extern pgd_t swapper_pg_dir[16384];
-
-static void check_mmu(void)
-{
- register struct linux_romvec *lvec;
- register int root_node;
- unsigned int present;
-
- lvec = romvec;
-
- root_node = (*(romvec->pv_nodeops->no_nextnode))(0);
-
- present = 0;
- (*(romvec->pv_nodeops->no_getprop))(root_node, "buserr-type",
- (char *) &present);
- if(present == 1)
- {
- printk("MMU bug found: uncaching trap table\n");
- for(present = (unsigned long) &trapbase; present < (unsigned long)
- &swapper_pg_dir; present+=PAGE_SIZE)
- put_pte(present, (get_pte(present) | PTE_NC));
- }
-
- return;
-}
-
-
-static void
-check_bugs(void)
-{
- check_mmu();
-}
+static void check_bugs(void) { }
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this