Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198177
b: refs/heads/master
c: d012ce2
h: refs/heads/master
i:
  198175: a4a30a1
v: v3
  • Loading branch information
Mike Frysinger committed May 21, 2010
1 parent 4975967 commit 73034ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 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: f074e48e0a54d8c1370f319ef95e71f796cd8048
refs/heads/master: d012ce22a492a38977ba727b02bcd216ed571710
31 changes: 13 additions & 18 deletions trunk/arch/blackfin/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,31 +40,26 @@ EXPORT_SYMBOL(cpu_pda);
void __init paging_init(void)
{
/*
* make sure start_mem is page aligned, otherwise bootmem and
* page_alloc get different views og the world
* make sure start_mem is page aligned, otherwise bootmem and
* page_alloc get different views of the world
*/
unsigned long end_mem = memory_end & PAGE_MASK;

pr_debug("start_mem is %#lx virtual_end is %#lx\n", PAGE_ALIGN(memory_start), end_mem);
unsigned long zones_size[MAX_NR_ZONES] = {
[0] = 0,
[ZONE_DMA] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT,
[ZONE_NORMAL] = 0,
#ifdef CONFIG_HIGHMEM
[ZONE_HIGHMEM] = 0,
#endif
};

/*
* Set up SFC/DFC registers (user data space)
*/
/* Set up SFC/DFC registers (user data space) */
set_fs(KERNEL_DS);

pr_debug("free_area_init -> start_mem is %#lx virtual_end is %#lx\n",
pr_debug("free_area_init -> start_mem is %#lx virtual_end is %#lx\n",
PAGE_ALIGN(memory_start), end_mem);

{
unsigned long zones_size[MAX_NR_ZONES] = { 0, };

zones_size[ZONE_DMA] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT;
zones_size[ZONE_NORMAL] = 0;
#ifdef CONFIG_HIGHMEM
zones_size[ZONE_HIGHMEM] = 0;
#endif
free_area_init(zones_size);
}
free_area_init(zones_size);
}

asmlinkage void __init init_pda(void)
Expand Down

0 comments on commit 73034ce

Please sign in to comment.