Thread (6 messages) 6 messages, 4 authors, 2008-09-01

Re: [PATCH] ppc4xx_pci: necessary fixes for 4GB RAM size

From: Ilya Yanok <hidden>
Date: 2008-09-01 07:32:36

Benjamin Herrenschmidt wrote:
quoted
quoted
1. total_memory should be phys_addr_t not unsigned long
2. is_power_of_2() works with u32 so I just inlined (size & (size-1)) != 0
instead.
Also this patch fixes default initialization: res->end should be 0x7fffffff
not 0x80000000.

Signed-off-by: Ilya Yanok <redacted>
      
Ben, any comments here?  Looks right to me.
    
Just one minor comment... The patch should do what I failed to do
before, which is to move total_memory declaration to a header :-)
  
Hm... looks like we already have this declaration in
arch/powerpc/mm/mmu_decl.h... I'll send modified patch soon.

Regards, Ilya.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help