From: rct@gherkin.sa.wlk.com (Bob_Tracy)
To: linux-kernel@vger.kernel.org
Subject: Cyrix/mtrr fix missing from 2.4.3
Date: Tue, 3 Apr 2001 10:20:12 -0500 (CDT) [thread overview]
Message-ID: <m14kSbM-0005khC@gherkin.sa.wlk.com> (raw)
The following fix was omitted from 2.4.3. It corrects a problem
where the mtrr code attempts to set up a region twice as large as
the user requested.
The original message appeared in linux-kernel on 14 Mar 2001.
--Bob Tracy
----- Forwarded message from David Wragg -----
>From: David Wragg <dpw@doc.ic.ac.uk>
>Date: 14 Mar 2001 22:57:21 +0000
Oops, it got broken by the MTRR >32-bit support in 2.4.0-testX. The
patch below should fix it.
Joerg, I think this might well fix your Cyrix mtrr problem also.
Let me know how it goes,
Dave Wragg
diff -uar linux-2.4.2/arch/i386/kernel/mtrr.c linux-2.4.2.cyrix/arch/i386/kernel/mtrr.c
--- linux-2.4.2/arch/i386/kernel/mtrr.c Thu Feb 22 15:24:53 2001
+++ linux-2.4.2.cyrix/arch/i386/kernel/mtrr.c Wed Mar 14 22:28:02 2001
@@ -538,7 +538,7 @@
* Note: shift==0xf means 4G, this is unsupported.
*/
if (shift)
- *size = (reg < 7 ? 0x1UL : 0x40UL) << shift;
+ *size = (reg < 7 ? 0x1UL : 0x40UL) << (shift - 1);
else
*size = 0;
----- End of forwarded message from David Wragg -----
reply other threads:[~2001-04-03 15:21 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=m14kSbM-0005khC@gherkin.sa.wlk.com \
--to=rct@gherkin.sa.wlk.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
all inboxes | Powered by JetHome®