]> git.vomp.tv Git - makedevenv.git/blob - kernel/patches-2.4.31/memsize.patch
Initial import
[makedevenv.git] / kernel / patches-2.4.31 / memsize.patch
1 diff -Narup linux-2.4.31-orig/arch/ppc/boot/simple/misc-embedded.c linux-2.4.31/arch/ppc/boot/simple/misc-embedded.c
2 --- linux-2.4.31-orig/arch/ppc/boot/simple/misc-embedded.c      2006-03-16 23:13:06.000000000 +0800
3 +++ linux-2.4.31/arch/ppc/boot/simple/misc-embedded.c   2006-03-16 12:43:57.000000000 +0800
4 @@ -112,6 +112,9 @@ load_kernel(unsigned long load_addr, int
5         /* Set end of memory available to us.  It is always the highest
6          * memory address provided by the board information.
7          */
8 +#if defined (CONFIG_REDWOOD_5) || defined (CONFIG_REDWOOD_6)
9 +       bp->bi_memsize = (16 * 1024 * 1024); // memory limited to 16 MBytes
10 +#endif 
11         end_avail = (char *)(bp->bi_memsize);
12  
13         puts("\nloaded at:     "); puthex(load_addr);
14 diff -Narup linux-2.4.31-orig/arch/ppc/kernel/ppc4xx_setup.c linux-2.4.31/arch/ppc/kernel/ppc4xx_setup.c
15 --- linux-2.4.31-orig/arch/ppc/kernel/ppc4xx_setup.c    2006-03-16 23:13:28.000000000 +0800
16 +++ linux-2.4.31/arch/ppc/kernel/ppc4xx_setup.c 2006-03-16 12:45:35.000000000 +0800
17 @@ -161,6 +161,9 @@ ppc4xx_find_end_of_memory(void)
18  {
19         bd_t *bip = (bd_t *) __res;
20  
21 +#if defined (CONFIG_REDWOOD_5) || defined (CONFIG_REDWOOD_6)
22 +       bip->bi_memsize = 0x1000000;    // memory was limited 16MB.
23 +#endif
24         return ((unsigned long) bip->bi_memsize);
25  }
26