Add basic support for arm64
Status from this message: Applied, thanks
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest14 patches 1 replyApplied
- v4 posting 2/213 patches 0 repliesSuperseded
- v4 posting 1/20 of 12 patches 2 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 posting 2/2 | 14 patches | 8 replies | Superseded | |
| v3 posting 1/2 | 0 of 12 patches | 0 replies | Superseded | |
| v2 | 12 patches | 4 replies | Superseded | |
| v1 | 12 patches | 13 replies | Superseded |
Change since v3 from the cover letter
PATCH 2/14 remove hunk belonging to PATCH 3/14
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | arm64: add armv8 Kconfig entriesarch/ arch/ | +55 | 0 replies | |
| 2/14 | arm: Makefile: rework makefile to handle armv8arch/ | +16 | 0 replies | |
| 3/14 | arm: rework lib directory to support arm64arch/ arch/ arch/ +59 more | +3970 | 0 replies | |
| 4/14 | arm: cpu: add arm64 specific codearch/ arch/ arch/ +5 more | +450 | 0 replies | |
| 5/14 | arm: include: system: add arm64 helper functionsarch/ | +45 | 0 replies | |
| 6/14 | arm: include: bitops: arm64 use generic __flsarch/ | +5 | 0 replies | |
| 7/14 | arm: include: system_info: add armv8 identificationarch/ | +38 | 0 replies | |
| 8/14 | arm: cpu: cpuinfo: add armv8 supportarch/ | +54 | 0 replies | |
| 9/14 | arm: cpu: disable code portion in armv8 casearch/ | +5 | 0 replies | |
| 10/14 | arm: cpu: add basic arm64 mmu supportarch/ arch/ arch/ +3 more | +540 | 0 replies | |
| 11/14 | arm: boards: add mach-qemu and virt64 boardarch/ arch/ arch/ +11 more | +249 | 0 replies | |
| 12/14 | arm: include: swab: use rigth assembly for armv8arch/ | +4 | 0 replies | |
| 13/14 | uimage: add define for ARM64 architecturecommon/ include/ | +6 | 0 replies | |
| 14/14 | Documentation: add aarch64-qemu-virt board doc.Documentation/ | +13 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH v5 0/14] Add basic support for arm64
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox