Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29017
b: refs/heads/master
c: 2dcf15b
h: refs/heads/master
i:
  29015: 9d9229d
v: v3
  • Loading branch information
Roman Zippel authored and Linus Torvalds committed Jun 23, 2006
1 parent 5b802c1 commit 060d21a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 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: 882905c7ff81763a3aa3413629f7253b75587cb1
refs/heads/master: 2dcf15b78d14c8d92fa1ce1be95b75e8d27ef99f
12 changes: 6 additions & 6 deletions trunk/arch/m68k/mm/motorola.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void __init paging_init(void)
{
int chunk;
unsigned long mem_avail = 0;
unsigned long zones_size[3] = { 0, };
unsigned long zones_size[MAX_NR_ZONES] = { 0, };

#ifdef DEBUG
{
Expand Down Expand Up @@ -257,12 +257,12 @@ void __init paging_init(void)
#ifdef DEBUG
printk ("before free_area_init\n");
#endif
zones_size[0] = (mach_max_dma_address < (unsigned long)high_memory ?
(mach_max_dma_address+1) : (unsigned long)high_memory);
zones_size[1] = (unsigned long)high_memory - zones_size[0];
zones_size[ZONE_DMA] = (mach_max_dma_address < (unsigned long)high_memory ?
(mach_max_dma_address+1) : (unsigned long)high_memory);
zones_size[ZONE_NORMAL] = (unsigned long)high_memory - zones_size[0];

zones_size[0] = (zones_size[0] - PAGE_OFFSET) >> PAGE_SHIFT;
zones_size[1] >>= PAGE_SHIFT;
zones_size[ZONE_DMA] = (zones_size[ZONE_DMA] - PAGE_OFFSET) >> PAGE_SHIFT;
zones_size[ZONE_NORMAL] >>= PAGE_SHIFT;

free_area_init(zones_size);
}
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/m68k/mm/sun3mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void __init paging_init(void)
unsigned long address;
unsigned long next_pgtable;
unsigned long bootmem_end;
unsigned long zones_size[3] = {0, 0, 0};
unsigned long zones_size[MAX_NR_ZONES] = { 0, };
unsigned long size;


Expand Down Expand Up @@ -92,8 +92,7 @@ void __init paging_init(void)
current->mm = NULL;

/* memory sizing is a hack stolen from motorola.c.. hope it works for us */
zones_size[0] = ((unsigned long)high_memory - PAGE_OFFSET) >> PAGE_SHIFT;
zones_size[1] = 0;
zones_size[ZONE_DMA] = ((unsigned long)high_memory - PAGE_OFFSET) >> PAGE_SHIFT;

free_area_init(zones_size);

Expand Down

0 comments on commit 060d21a

Please sign in to comment.