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: Re: inux should not set the "PnP OS" boot flag
Date: 06 Oct 2001 00:32:55 -0400	[thread overview]
Message-ID: <1002342777.813.102.camel@thanatos> (raw)

> I append a short patch
> to remove the bit of code that sets the boot flag.  (I see where
> the function also zeroes out the sbf value if it appears not to be
> a valid value.  That seems rather rash to me, but I leave it
> alone because I don't understand why it's there.)

I see also that in that function:

--------------------------------------------------------
static void __init sbf_bootup(void)
{
	u8 v = sbf_read();
	if(!sbf_value_valid(v))
		v = 0;
#if defined(CONFIG_PNPBIOS)
	/* Tell the BIOS to fast init as we are a PnP OS */
	v |= (1<<0);	/* Set PNPOS flag */
#endif
	sbf_write(v);
}
--------------------------------------------------------

there is a parity check (in the sbf_value_valid function)
prior to changing one of the bits, but there is no check to make
sure that the parity is still correct after the "PNPOS" flag
has been set.  Is this okay?  Or am I confused about something?

--
Thomas Hood



                 reply	other threads:[~2001-10-06  4:33 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=1002342777.813.102.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