mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 09:41:44 +00:00
1fc8b4ef4e
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>
17 lines
466 B
C
17 lines
466 B
C
#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 */
|