]> git.neil.brown.name Git - history.git/commit
[PATCH] convert node/zone_start_paddr to pfns
authorAndrew Morton <akpm@zip.com.au>
Tue, 3 Sep 2002 12:33:51 +0000 (05:33 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 3 Sep 2002 12:33:51 +0000 (05:33 -0700)
commit2589a05fefe5545b48c479591903f26ef42b2244
tree20a0dddcb7c2c7827d0adbb0107b4cbc9f649059
parent11bf19bc0eb48735772e664d07573f916f6e3f29
[PATCH] convert node/zone_start_paddr to pfns

I've had ia32-discontigmem under test for a month, uneventfully.  Possibly
because I don't have a machine to test it on....

A major part of this work is a general move to convert the low-level
memory management to consistently use pageframe numbers.  It's a bit
schizo at present..

This patch was written by Martin Bligh.  A version of this patch is in
the 2.4 aa tree.

It changes the unsigned longs node_start_paddr and zone_start_paddr to
page frame numbers.  This is necessary because a PAE address is 36 bits
and cannot be represented in an unsigned long.

 - The per-node physical memory start address node_start_paddr becomes
   a pfn, node_start_pfn.

 - The per-zone physical memory start address zone_start_paddr becomes
   a pfn, zone_start_pfn.

 - free_area_init_node() takes a pfn rather than a physical address.

Patricia has tested this patch on the following configurations: UP,
SMP, SMP PAE, multiquad, multiquad PAE, multiquad DISCONTIGMEM,
multiquad DISCONTIGMEM PAE.
20 files changed:
arch/alpha/mm/numa.c
arch/arm/mm/init.c
arch/cris/mm/init.c
arch/mips64/sgi-ip27/ip27-memory.c
arch/sh/mm/init.c
arch/sparc/mm/srmmu.c
arch/sparc/mm/sun4c.c
arch/sparc64/mm/init.c
include/asm-alpha/mmzone.h
include/asm-alpha/pgtable.h
include/asm-arm/memory.h
include/asm-mips64/mmzone.h
include/asm-mips64/pgtable.h
include/asm-ppc64/mmzone.h
include/asm-ppc64/page.h
include/linux/mm.h
include/linux/mmzone.h
mm/highmem.c
mm/numa.c
mm/page_alloc.c