linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Fix for BAT mapping calculation
@ 2003-11-20 20:51 Mich Lanners
  0 siblings, 0 replies; only message in thread
From: Mich Lanners @ 2003-11-20 20:51 UTC (permalink / raw)
  To: linuxppc-dev

[-- 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-20 20:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-20 20:51 Fix for BAT mapping calculation Mich Lanners

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).