[PATCH] powerpc: Merge (move) numnodes.h and sparsemem.h
The ppc64 versions of numnodes.h and sparsemem.h can be safely moved to asm-powerpc with no changes apart from changing the #define to the standard _ASM_POWERPC_ form. There are no ppc32 versions of these files, because they only have any effect if CONFIG_SPARSEMEM is enabled, which it never can be on ppc32. Built and booted on pSeries (POWER5), built for 32-bit powermac. Signed-off-by: David Gibson <dwg@au1.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
de2d3dbd17
commit
1fc8b4ef4e
16
include/asm-powerpc/sparsemem.h
Normal file
16
include/asm-powerpc/sparsemem.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef _ASM_POWERPC_SPARSEMEM_H
|
||||
#define _ASM_POWERPC_SPARSEMEM_H 1
|
||||
|
||||
#ifdef CONFIG_SPARSEMEM
|
||||
/*
|
||||
* SECTION_SIZE_BITS 2^N: how big each section will be
|
||||
* MAX_PHYSADDR_BITS 2^N: how much physical address space we have
|
||||
* MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
|
||||
*/
|
||||
#define SECTION_SIZE_BITS 24
|
||||
#define MAX_PHYSADDR_BITS 38
|
||||
#define MAX_PHYSMEM_BITS 36
|
||||
|
||||
#endif /* CONFIG_SPARSEMEM */
|
||||
|
||||
#endif /* _ASM_POWERPC_SPARSEMEM_H */
|
Reference in New Issue
Block a user