Chance since v4: PATCH 14/14 new patch, add documentation about aarch64 qemu virt Change since v3: PATCH 2/14 remove hunk belonging to PATCH 3/14 PATCH 3/14 create a lib/ for common code and lib32/ lib64/ PATCH 4/14 add setupc_64, for now setup_c() only memset bss PATCH 12/14 use default memory layout, chance TEXT_BASE address to let malloc space below Change since v2: PATCH 1/14 add PHYS_ADDR_T_64BIT config PATCH 3/14 remove modules.c and clean atags functions in armlinux.c, and fix also parameters passed to linux kernel. PATCH 12/14 move lowlevel file from mach-qemu/ to boards/ (like others boards) split dram and flash init increase dram/flash size PATCH 13/14 new patch, in case of armv8, swab need to be done on 32-bit wide register otherwise swapping the value: "0xAAAABBBB" will become "0xAAAABBBB00000000" and see as a null value in uint32_t variable. PATCH 14/14 new patch, add define to handle arm64 uimage format Change since v1: PATCH 2/12: remove hunk which belongs to patch adding mach-qemu PATCH 3/12: remove unused files PATCH 4/12: create lowlevel64 PATCH 11/12: create pgtables64 (nothing in common with the arm32 version) PATCH 12/12: rename "mach-virt" => "mach-qemu" rename board "qemu_virt64" remove board env files Hello, This patch series introduces a basic support for arm64. The arm64 code is merged in the current arch/arm directory. I try to be iterative in the merge process, and find correct solutions to handle both architecture at some places. I test the patch series by compiling arm64 virt machine and arm32 vexpress-a9 and test it in qemu, everything seems to work. Thanks, Raphaël Documentation/boards/aarch64-qemu-virt.rst | 13 ++ arch/arm/Kconfig | 28 +++ arch/arm/Makefile | 41 +++- arch/arm/boards/Makefile | 1 + arch/arm/boards/qemu-virt64/Kconfig | 8 + arch/arm/boards/qemu-virt64/Makefile | 2 + arch/arm/boards/qemu-virt64/env/config | 8 + arch/arm/boards/qemu-virt64/init.c | 72 ++++++ arch/arm/boards/qemu-virt64/lowlevel.c | 19 ++ arch/arm/configs/qemu_virt64_defconfig | 47 ++++ arch/arm/cpu/Kconfig | 33 ++- arch/arm/cpu/Makefile | 28 ++- arch/arm/cpu/cache-armv8.S | 168 ++++++++++++++ arch/arm/cpu/cache.c | 19 ++ arch/arm/cpu/cpu.c | 7 + arch/arm/cpu/cpuinfo.c | 58 ++++- arch/arm/cpu/exceptions_64.S | 127 +++++++++++ arch/arm/cpu/interrupts.c | 47 ++++ arch/arm/cpu/lowlevel_64.S | 40 ++++ arch/arm/cpu/mmu.h | 54 +++++ arch/arm/cpu/mmu_64.c | 331 +++++++++++++++++++++++++++ arch/arm/cpu/setupc_64.S | 18 ++ arch/arm/include/asm/bitops.h | 5 + arch/arm/include/asm/cache.h | 9 + arch/arm/include/asm/mmu.h | 14 +- arch/arm/include/asm/pgtable64.h | 140 ++++++++++++ arch/arm/include/asm/swab.h | 4 + arch/arm/include/asm/system.h | 46 +++- arch/arm/include/asm/system_info.h | 38 ++++ arch/arm/lib/.gitignore | 1 - arch/arm/lib/Makefile | 27 --- arch/arm/lib/armlinux.c | 281 ----------------------- arch/arm/lib/ashldi3.S | 50 ---- arch/arm/lib/ashrdi3.S | 50 ---- arch/arm/lib/barebox.lds.S | 126 ----------- arch/arm/lib/bootz.c | 136 ----------- arch/arm/lib/copy_template.S | 268 ---------------------- arch/arm/lib/div0.c | 27 --- arch/arm/lib/findbit.S | 197 ---------------- arch/arm/lib/io-readsb.S | 125 ---------- arch/arm/lib/io-readsl.S | 81 ------- arch/arm/lib/io-readsw-armv4.S | 133 ----------- arch/arm/lib/io-writesb.S | 96 -------- arch/arm/lib/io-writesl.S | 69 ------ arch/arm/lib/io-writesw-armv4.S | 102 --------- arch/arm/lib/io.c | 50 ---- arch/arm/lib/lib1funcs.S | 351 ----------------------------- arch/arm/lib/lshrdi3.S | 50 ---- arch/arm/lib/memcpy.S | 64 ------ arch/arm/lib/memset.S | 124 ---------- arch/arm/lib/module.c | 98 -------- arch/arm/lib/pbl.lds.S | 96 -------- arch/arm/lib/runtime-offset.S | 52 ----- arch/arm/lib/semihosting-trap.S | 28 --- arch/arm/lib/semihosting.c | 227 ------------------- arch/arm/lib/unwind.c | 349 ---------------------------- arch/arm/lib32/.gitignore | 1 + arch/arm/lib32/Makefile | 27 +++ arch/arm/lib32/armlinux.c | 281 +++++++++++++++++++++++ arch/arm/lib32/ashldi3.S | 50 ++++ arch/arm/lib32/ashrdi3.S | 50 ++++ arch/arm/lib32/barebox.lds.S | 126 +++++++++++ arch/arm/lib32/bootz.c | 136 +++++++++++ arch/arm/lib32/copy_template.S | 268 ++++++++++++++++++++++ arch/arm/lib32/div0.c | 27 +++ arch/arm/lib32/findbit.S | 197 ++++++++++++++++ arch/arm/lib32/io-readsb.S | 125 ++++++++++ arch/arm/lib32/io-readsl.S | 81 +++++++ arch/arm/lib32/io-readsw-armv4.S | 133 +++++++++++ arch/arm/lib32/io-writesb.S | 96 ++++++++ arch/arm/lib32/io-writesl.S | 69 ++++++ arch/arm/lib32/io-writesw-armv4.S | 102 +++++++++ arch/arm/lib32/io.c | 50 ++++ arch/arm/lib32/lib1funcs.S | 351 +++++++++++++++++++++++++++++ arch/arm/lib32/lshrdi3.S | 50 ++++ arch/arm/lib32/memcpy.S | 64 ++++++ arch/arm/lib32/memset.S | 124 ++++++++++ arch/arm/lib32/module.c | 98 ++++++++ arch/arm/lib32/pbl.lds.S | 96 ++++++++ arch/arm/lib32/runtime-offset.S | 52 +++++ arch/arm/lib32/semihosting-trap.S | 28 +++ arch/arm/lib32/semihosting.c | 227 +++++++++++++++++++ arch/arm/lib32/unwind.c | 349 ++++++++++++++++++++++++++++ arch/arm/lib64/Makefile | 9 + arch/arm/lib64/armlinux.c | 50 ++++ arch/arm/lib64/barebox.lds.S | 125 ++++++++++ arch/arm/lib64/copy_template.S | 192 ++++++++++++++++ arch/arm/lib64/div0.c | 27 +++ arch/arm/lib64/memcpy.S | 74 ++++++ arch/arm/lib64/memset.S | 215 ++++++++++++++++++ arch/arm/mach-qemu/Kconfig | 18 ++ arch/arm/mach-qemu/Makefile | 1 + arch/arm/mach-qemu/include/mach/debug_ll.h | 24 ++ arch/arm/mach-qemu/include/mach/devices.h | 13 ++ arch/arm/mach-qemu/virt_devices.c | 30 +++ common/image.c | 1 + include/image.h | 5 + 97 files changed, 5449 insertions(+), 3276 deletions(-) _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox