Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254779
b: refs/heads/master
c: 0371d3f
h: refs/heads/master
i:
  254777: febc553
  254775: 3b9db5a
v: v3
  • Loading branch information
Russell King committed Jul 5, 2011
1 parent 23b6b97 commit 3a1392f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 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: 6f96521fab978046070a697926cf351c2c37af29
refs/heads/master: 0371d3f7e8f1cddaee1f215e42c09a40e235d810
2 changes: 2 additions & 0 deletions trunk/arch/arm/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ __setup("fpe=", fpe_setup);
#endif

extern void paging_init(struct machine_desc *desc);
extern void sanity_check_meminfo(void);
extern void reboot_setup(char *str);

unsigned int processor_id;
Expand Down Expand Up @@ -900,6 +901,7 @@ void __init setup_arch(char **cmdline_p)

parse_early_param();

sanity_check_meminfo();
arm_memblock_init(&meminfo, mdesc);

paging_init(mdesc);
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/arm/mm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ early_param("vmalloc", early_vmalloc);

static phys_addr_t lowmem_limit __initdata = 0;

static void __init sanity_check_meminfo(void)
void __init sanity_check_meminfo(void)
{
int i, j, highmem = 0;

Expand Down Expand Up @@ -1032,8 +1032,9 @@ void __init paging_init(struct machine_desc *mdesc)
{
void *zero_page;

memblock_set_current_limit(lowmem_limit);

build_mem_type_table();
sanity_check_meminfo();
prepare_page_table();
map_lowmem();
devicemaps_init(mdesc);
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/arm/mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ void __init arm_mm_memblock_reserve(void)
memblock_reserve(CONFIG_VECTORS_BASE, PAGE_SIZE);
}

void __init sanity_check_meminfo(void)
{
}

/*
* paging_init() sets up the page tables, initialises the zone memory
* maps, and sets up the zero page, bad page and bad page tables.
Expand Down

0 comments on commit 3a1392f

Please sign in to comment.