1. 08 8月, 2008 2 次提交
    • R
      [ARM] fix pnx4008 build errors · 2727f226
      Russell King 提交于
      include/linux/i2c-pnx.h was missed when moving the include files.
      Fix it now; it doesn't really need to include mach/i2c.h at all.
      Successfully build tested with pnx4008_defconfig, which had
      failed in linux-next.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      2727f226
    • R
      [ARM] Fix SMP booting with non-zero PHYS_OFFSET · 058ddee5
      Russell King 提交于
      The existing code tries to get the pmd for the temporary page table
      by doing:
      
              pgd = pgd_alloc(&init_mm);
              pmd = pmd_offset(pgd, PHYS_OFFSET);
      
      Since we have a two level page table, pmd_offset() is a no-op, so
      this just has a casting effect from a pgd to a pmd - the address
      argument is unused.  So this can't work.
      
      Normally, we'd do:
      
      	pgd = pgd_offset(&init_mm, PHYS_OFFSET);
      	...
      	pmd = pmd_offset(pgd, PHYS_OFFSET);
      
      to get the pmd you want.  However, pgd_offset() takes the mm_struct,
      not the (unattached) pgd we just allocated.  So, instead use:
      
              pgd = pgd_alloc(&init_mm);
              pmd = pmd_offset(pgd + pgd_index(PHYS_OFFSET), PHYS_OFFSET);
      Reported-by: NAntti P Miettinen <ananaza@iki.fi>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      058ddee5
  2. 07 8月, 2008 13 次提交
  3. 06 8月, 2008 25 次提交