1. 28 1月, 2011 3 次提交
    • M
      microblaze: Fix ASM optimized code for LE · de93c3c1
      Michal Simek 提交于
      Microblaze little-endian doesn't support ASM optimized library
      functions(memcpy/memmove). Kconfig doens't contain
      any information about endian that's why it is necessary to
      check it in the source code.
      The code is used with barrel shifter is used.
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      de93c3c1
    • M
      microblaze: Fix unaligned issue on MMU system with BS=0 DIV=1 · 9c749e17
      Michal Simek 提交于
      Unaligned code use shift for finding register operand.
      There is used BSRLI(r8,r8,2) macro which is expand for BS=0, DIV=1
      by
      	ori rD, r0, (1 << imm);	\
      	idivu rD, rD, rA
      
      but if rD is equal rA then ori instruction rewrite value which
      should be devide.
      
      The patch remove this macro which use idivu instruction because
      idivu takes 32/34 cycles. The highest shifting is 20 which takes
      20 cycles.
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      9c749e17
    • M
      microblaze: Fix DTB passing from bootloader · 026a2078
      Michal Simek 提交于
      Little endian system needs to check OF_DT_HEADER
      but it is swapped because it is in big-endian.
      Microblaze LE provides lwr instruction which loads
      magic number in BIG endian format which can be compared.
      
      There is used the fact that if you write 0x1 as word
      and load it as byte then you get for big-endian zero
      and 1 for little-endian.
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      026a2078
  2. 21 1月, 2011 3 次提交
  3. 16 1月, 2011 3 次提交
    • M
      microblaze: Fix asm/pgtable.h · 658b368d
      Michal Simek 提交于
      Function ptep_test_and_clear_young have had wrong the first argument.
      It is also necessary to add __HAVE macros for ptep_test_and_clear_young and
      ptep_get_and_clear functions.
      
      Error log:
      In file included from linux/arch/microblaze/include/asm/pgtable.h:570,
                       from arch/microblaze/mm/pgtable.c:35:
      include/asm-generic/pgtable.h:23: error: conflicting types for 'ptep_test_and_clear_young'
      linux/arch/microblaze/include/asm/pgtable.h:449: error:
      previous definition of 'ptep_test_and_clear_young' was here
      include/asm-generic/pgtable.h:73: error: redefinition of 'ptep_get_and_clear'
      linux/arch/microblaze/include/asm/pgtable.h:462: error:
      previous definition of 'ptep_get_and_clear' was here
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      658b368d
    • M
      microblaze: Fix missing pagemap.h · 1947fc1d
      Michal Simek 提交于
      Add missing linux/pagemap.h to solve compilation error.
      
      Error log:
      In file included from linux/arch/microblaze/include/asm/tlb.h:17,
                       from mm/pgtable-generic.c:9:
      include/asm-generic/tlb.h: In function 'tlb_flush_mmu':
      include/asm-generic/tlb.h:76: error: implicit declaration of function 'release_pages'
      include/asm-generic/tlb.h: In function 'tlb_remove_page':
      include/asm-generic/tlb.h:105: error: implicit declaration of function 'page_cache_release'
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      1947fc1d
    • G
      dt/flattree: Return virtual address from early_init_dt_alloc_memory_arch() · 672c5446
      Grant Likely 提交于
      The physical address is never used by the device tree code when
      allocating memory for unflattening.  Change the architecture's alloc
      hook to return the virutal address instead.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      672c5446
  4. 10 1月, 2011 1 次提交
  5. 03 1月, 2011 7 次提交
  6. 30 12月, 2010 1 次提交
    • S
      of/flattree: Add Kconfig for EARLY_FLATTREE · e6ce1324
      Stephen Neuendorffer 提交于
      The device tree code is now in two pieces: some which can be used generically
      on any platform which selects CONFIG_OF_FLATTREE, and some early which is used
      at boot time on only a few architectures.  This patch segregates the early
      code so that only those architectures which care about it need compile it.
      This also means that some of the requirements in the early code (such as
      a cmd_line variable) that most architectures (e.g. X86) don't provide
      can be ignored.
      Signed-off-by: NStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
      [grant.likely@secretlab.ca: remove extra blank line addition]
      [grant.likely@secretlab.ca: fixed incorrect #ifdef CONFIG_EARLY_FLATTREE check]
      [grant.likely@secretlab.ca: Made OF_EARLY_FLATTREE select instead of depend
                                  on OF_FLATTREE]
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      e6ce1324
  7. 24 12月, 2010 1 次提交
  8. 18 11月, 2010 2 次提交
  9. 15 11月, 2010 1 次提交
  10. 01 11月, 2010 1 次提交
  11. 28 10月, 2010 2 次提交
  12. 27 10月, 2010 1 次提交
  13. 22 10月, 2010 2 次提交
  14. 21 10月, 2010 12 次提交