On 30/10/2014 16:56, Andrew Jones wrote: > This first patch of this series fixes a bug caused by attempting > to use spinlocks without enabling the MMU. The next three do some > prep for the fifth, and also fix arm's PAGE_ALIGN. The fifth is > prep for the sixth, which finally turns the MMU on for arm unit > tests. > > Andrew Jones (6): > arm: fix crash on cubietruck > lib: add ALIGN() macro > lib: steal const.h from kernel > arm: apply ALIGN() and const.h to arm files > arm: import some Linux page table API > arm: turn on the MMU > > arm/cstart.S | 33 +++++++++++++++++++++++ > config/config-arm.mak | 3 ++- > lib/alloc.c | 4 +-- > lib/arm/asm/mmu.h | 43 ++++++++++++++++++++++++++++++ > lib/arm/asm/page.h | 43 +++++++++++++++++++++++------- > lib/arm/asm/pgtable-hwdef.h | 65 +++++++++++++++++++++++++++++++++++++++++++++ > lib/arm/mmu.c | 53 ++++++++++++++++++++++++++++++++++++ > lib/arm/processor.c | 11 ++++++++ > lib/arm/setup.c | 3 +++ > lib/arm/spinlock.c | 7 +++++ > lib/asm-generic/page.h | 17 ++++++------ > lib/const.h | 11 ++++++++ > lib/libcflat.h | 4 +++ > 13 files changed, 275 insertions(+), 22 deletions(-) > create mode 100644 lib/arm/asm/mmu.h > create mode 100644 lib/arm/asm/pgtable-hwdef.h > create mode 100644 lib/arm/mmu.c > create mode 100644 lib/const.h > Tested on CubieTruck and applied, thanks. Paolo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html