[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ppc
Subject: Fix for BAT mapping calculation
From: Mich Lanners <mlan () cpu ! lu>
Date: 2003-11-20 20:51:37
[Download RAW message or body]
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. "
["pgtable.c.diff" (TEXT/PLAIN)]
--- 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
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic