Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177741
b: refs/heads/master
c: 202b864
h: refs/heads/master
i:
  177739: 99d3deb
v: v3
  • Loading branch information
Chen Liqin committed Dec 17, 2009
1 parent 14f6b28 commit f890f31
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 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: 11ab3f3d3c2474d3ed6912443de74c3972bd6f23
refs/heads/master: 202b864ad5aa34989609a3073acbe7a04795b265
2 changes: 1 addition & 1 deletion trunk/arch/score/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ extern unsigned long max_pfn;
#define page_to_bus(page) (page_to_phys(page))
#define phys_to_page(paddr) (pfn_to_page(phys_to_pfn(paddr)))

#define pfn_valid(pfn) ((pfn) >= min_low_pfn && (pfn) < max_mapnr)
#define pfn_valid(pfn) (((pfn) >= min_low_pfn) && ((pfn) < max_low_pfn))

#define ARCH_PFN_OFFSET (PAGE_OFFSET >> PAGE_SHIFT)

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/score/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ static void __init bootmem_init(void)

min_low_pfn = PFN_UP(MEMORY_START);
max_low_pfn = PFN_UP(MEMORY_START + MEMORY_SIZE);
max_mapnr = max_low_pfn - min_low_pfn;

/* Initialize the boot-time allocator with low memory only. */
bootmap_size = init_bootmem_node(NODE_DATA(0), start_pfn,
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/score/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ void __init mem_init(void)
unsigned long codesize, reservedpages, datasize, initsize;
unsigned long tmp, ram = 0;

max_mapnr = max_low_pfn;
high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT);
totalram_pages += free_all_bootmem();
totalram_pages -= setup_zero_page(); /* Setup zeroed pages. */
Expand All @@ -101,10 +100,6 @@ void __init mem_init(void)
datasize = (unsigned long) &_edata - (unsigned long) &_etext;
initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin;

kclist_add(&kcore_mem, __va(0), max_low_pfn << PAGE_SHIFT);
kclist_add(&kcore_vmalloc, (void *) VMALLOC_START,
VMALLOC_END - VMALLOC_START);

printk(KERN_INFO "Memory: %luk/%luk available (%ldk kernel code, "
"%ldk reserved, %ldk data, %ldk init, %ldk highmem)\n",
(unsigned long) nr_free_pages() << (PAGE_SHIFT-10),
Expand Down

0 comments on commit f890f31

Please sign in to comment.