Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3212
b: refs/heads/master
c: b4819b5
h: refs/heads/master
v: v3
  • Loading branch information
Yoichi Yuasa authored and Linus Torvalds committed Jun 25, 2005
1 parent fb21590 commit cf33704
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7919a693bd735ed0aa93fc359ae09a588cfeb3bc
refs/heads/master: b4819b593740a6d11db07b52e0fe35975b29a185
6 changes: 6 additions & 0 deletions trunk/arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1416,6 +1416,12 @@ config HIGHMEM
bool "High Memory Support"
depends on MIPS32 && (CPU_R3000 || CPU_SB1 || CPU_R7000 || CPU_RM9000 || CPU_R10000) && !(MACH_DECSTATION || MOMENCO_JAGUAR_ATX)

config ARCH_FLATMEM_ENABLE
def_bool y
depends on !NUMA

source "mm/Kconfig"

config SMP
bool "Multi-Processing support"
depends on CPU_RM9000 || (SIBYTE_SB1250 && !SIBYTE_STANDALONE) || SGI_IP27
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/mips/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/root_dev.h>
#include <linux/highmem.h>
#include <linux/console.h>
#include <linux/mmzone.h>

#include <asm/addrspace.h>
#include <asm/bootinfo.h>
Expand Down Expand Up @@ -356,6 +357,8 @@ static inline void bootmem_init(void)
}
#endif

memory_present(0, first_usable_pfn, max_low_pfn);

/* Initialize the boot-time allocator with low memory only. */
bootmap_size = init_bootmem(first_usable_pfn, max_low_pfn);

Expand Down Expand Up @@ -557,6 +560,7 @@ void __init setup_arch(char **cmdline_p)

parse_cmdline_early();
bootmem_init();
sparse_init();
paging_init();
resource_init();
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/mips/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static void __init fixrange_init(unsigned long start, unsigned long end,
#endif /* CONFIG_MIPS64 */
#endif /* CONFIG_HIGHMEM */

#ifndef CONFIG_DISCONTIGMEM
#ifndef CONFIG_NEED_MULTIPLE_NODES
extern void pagetable_init(void);

void __init paging_init(void)
Expand Down Expand Up @@ -253,7 +253,7 @@ void __init mem_init(void)
initsize >> 10,
(unsigned long) (totalhigh_pages << (PAGE_SHIFT-10)));
}
#endif /* !CONFIG_DISCONTIGMEM */
#endif /* !CONFIG_NEED_MULTIPLE_NODES */

#ifdef CONFIG_BLK_DEV_INITRD
void free_initrd_mem(unsigned long start, unsigned long end)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/mm/pgtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

void show_mem(void)
{
#ifndef CONFIG_DISCONTIGMEM /* XXX(hch): later.. */
#ifndef CONFIG_NEED_MULTIPLE_NODES /* XXX(hch): later.. */
int pfn, total = 0, reserved = 0;
int shared = 0, cached = 0;
int highmem = 0;
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/asm-mips/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <asm/page.h>
#include <mmzone.h>

#ifdef CONFIG_DISCONTIGMEM

#define kvaddr_to_nid(kvaddr) pa_to_nid(__pa(kvaddr))
#define pfn_to_nid(pfn) pa_to_nid((pfn) << PAGE_SHIFT)

Expand Down Expand Up @@ -36,4 +38,6 @@
/* XXX: FIXME -- wli */
#define kern_addr_valid(addr) (0)

#endif /* CONFIG_DISCONTIGMEM */

#endif /* _ASM_MMZONE_H_ */
2 changes: 1 addition & 1 deletion trunk/include/asm-mips/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ static __inline__ int get_order(unsigned long size)

#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)

#ifndef CONFIG_DISCONTIGMEM
#ifndef CONFIG_NEED_MULTIPLE_NODES
#define pfn_to_page(pfn) (mem_map + (pfn))
#define page_to_pfn(page) ((unsigned long)((page) - mem_map))
#define pfn_valid(pfn) ((pfn) < max_mapnr)
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-mips/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ static inline void update_mmu_cache(struct vm_area_struct *vma,
__update_cache(vma, address, pte);
}

#ifndef CONFIG_DISCONTIGMEM
#ifndef CONFIG_NEED_MULTIPLE_NODES
#define kern_addr_valid(addr) (1)
#endif

Expand Down

0 comments on commit cf33704

Please sign in to comment.