patch-2.1.54 linux/include/asm-i386/bugs.h
Next file: linux/include/asm-i386/elf.h
Previous file: linux/include/asm-alpha/uaccess.h
Back to the patch index
Back to the overall index
- Lines: 63
- Date:
Sat Sep 6 10:50:21 1997
- Orig file:
v2.1.53/linux/include/asm-i386/bugs.h
- Orig date:
Mon Jul 7 16:02:01 1997
diff -u --recursive --new-file v2.1.53/linux/include/asm-i386/bugs.h linux/include/asm-i386/bugs.h
@@ -15,12 +15,12 @@
#define CONFIG_BUGi386
-static void no_halt(char *s, int *ints)
+__initfunc(static void no_halt(char *s, int *ints))
{
hlt_works_ok = 0;
}
-static void no_387(char *s, int *ints)
+__initfunc(static void no_387(char *s, int *ints))
{
hard_math = 0;
__asm__("movl %%cr0,%%eax\n\t"
@@ -28,9 +28,9 @@
"movl %%eax,%%cr0\n\t" : : : "ax");
}
-static char fpu_error = 0;
+static char __initdata fpu_error = 0;
-static void copro_timeout(void)
+__initfunc(static void copro_timeout(void))
{
fpu_error = 1;
timer_table[COPRO_TIMER].expires = jiffies+100;
@@ -41,7 +41,7 @@
outb_p(0,0xf0);
}
-static void check_fpu(void)
+__initfunc(static void check_fpu(void))
{
static double x = 4195835.0;
static double y = 3145727.0;
@@ -99,7 +99,7 @@
printk("Hmm, FDIV bug i%c86 system\n", '0'+x86);
}
-static void check_hlt(void)
+__initfunc(static void check_hlt(void))
{
printk(KERN_INFO "Checking 'hlt' instruction... ");
if (!hlt_works_ok) {
@@ -110,7 +110,7 @@
printk("Ok.\n");
}
-static void check_tlb(void)
+__initfunc(static void check_tlb(void))
{
#ifndef CONFIG_M386
/*
@@ -125,7 +125,7 @@
#endif
}
-static void check_bugs(void)
+__initfunc(static void check_bugs(void))
{
check_tlb();
check_fpu();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov