public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Hood <jdthood@mail.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Minor bootflag.c fix
Date: 13 Oct 2001 00:29:36 -0400	[thread overview]
Message-ID: <1002947377.757.8.camel@thanatos> (raw)

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;


                 reply	other threads:[~2001-10-13  4:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1002947377.757.8.camel@thanatos \
    --to=jdthood@mail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox