public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Minor bootflag.c fix
@ 2001-10-13  4:29 Thomas Hood
  0 siblings, 0 replies; only message in thread
From: Thomas Hood @ 2001-10-13  4:29 UTC (permalink / raw)
  To: linux-kernel

Without this patch, bootflag.c misleadingly reports an
invalid value read from CMOS RAM if SBF was not
enabled.

The patch:
--- linux-2.4.10-ac12/arch/i386/kernel/bootflag.c	Thu Oct 11 21:56:08 2001
+++ linux-2.4.10-ac12-fix/arch/i386/kernel/bootflag.c	Fri Oct 12 23:46:57 2001
@@ -128,7 +128,10 @@
 
 static void __init sbf_bootup(void)
 {
-	u8 v = sbf_read();
+	u8 v;
+	if(sbf_port == -1)
+		return;
+	v = sbf_read();
 	if(!sbf_value_valid(v))
 		printk(KERN_WARNING "SBF: Simple boot flag value 0x%x read from CMOS RAM was invalid\n",v);
 	v &= ~SBF_RESERVED;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-13  4:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-13  4:29 [PATCH] Minor bootflag.c fix Thomas Hood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox