From: Mich Lanners <mlan@cpu.lu>
To: linuxppc-dev@lists.linuxppc.org
Subject: Fix for BAT mapping calculation
Date: Thu, 20 Nov 2003 21:51:37 +0100 (CET) [thread overview]
Message-ID: <E1AMvm6-0000Ia-00@piglet.grunz.lu> (raw)
[-- Attachment #1: Type: TEXT/PLAIN, Size: 534 bytes --]
Hi,
The attached patch fixes a cosmetic problem with displaying the
RAM-to-BAT mapping on kernel start.
Please apply to 2.4 kernels (don't know whether 2.6 has the same bug).
Cheers
Michel
-------------------------------------------------------------------------
Michel Lanners | " Read Philosophy. Study Art.
23, Rue Paul Henkes | Ask Questions. Make Mistakes.
L-1710 Luxembourg |
email mlan@cpu.lu |
http://www.cpu.lu/~mlan | Learn Always. "
[-- Attachment #2: pgtable.c.diff --]
[-- Type: TEXT/PLAIN, Size: 454 bytes --]
--- arch/ppc/mm/pgtable.c.orig Thu Nov 20 21:42:39 2003
+++ arch/ppc/mm/pgtable.c Thu Nov 20 21:43:00 2003
@@ -238,7 +238,7 @@
printk(KERN_INFO "Memory BAT mapping: BAT2=%ldMb, BAT3=%ldMb,"
" residual: %ldMb\n", __bat2 >> 20, __bat3 >> 20,
- (total_memory - (__bat2 - __bat3)) >> 20);
+ (total_memory - (__bat2 + __bat3)) >> 20);
/* On SMP, we limit the lowmem to the area mapped with BATs.
* We also assume nobody will do SMP with 601s
reply other threads:[~2003-11-20 20:51 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=E1AMvm6-0000Ia-00@piglet.grunz.lu \
--to=mlan@cpu.lu \
--cc=linuxppc-dev@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).