mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Raphael Poggi <poggi.raph@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH v4 0/12] Add basic support for arm64
Date: Wed, 29 Jun 2016 10:22:07 +0200	[thread overview]
Message-ID: <1467188540-76509-1-git-send-email-poggi.raph@gmail.com> (raw)

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

 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 +
 96 files changed, 5436 insertions(+), 3276 deletions(-)


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2016-06-29  8:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-29  8:22 Raphael Poggi [this message]
2016-06-29  8:22 ` [PATCH v4 01/13] arm64: add armv8 Kconfig entries Raphael Poggi
2016-06-29  8:22 ` [PATCH v4 02/13] arm: Makefile: rework makefile to handle armv8 Raphael Poggi
2016-06-29  8:22 ` [PATCH v4 03/13] arm: rework lib directory to support arm64 Raphael Poggi
2016-06-29  8:22 ` [PATCH v4 04/13] arm: cpu: add arm64 specific code Raphael Poggi
2016-06-29  8:22 ` [PATCH v4 05/13] arm: include: system: add arm64 helper functions Raphael Poggi
2016-06-29  8:22 ` [PATCH v4 06/13] arm: include: bitops: arm64 use generic __fls Raphael Poggi
2016-06-29  8:22 ` [PATCH v4 07/13] arm: include: system_info: add armv8 identification Raphael Poggi
2016-06-29  8:22 ` [PATCH v4 08/13] arm: cpu: cpuinfo: add armv8 support Raphael Poggi
2016-06-29  8:22 ` [PATCH v4 09/13] arm: cpu: disable code portion in armv8 case Raphael Poggi
2016-06-29  8:22 ` [PATCH v4 10/13] arm: cpu: add basic arm64 mmu support Raphael Poggi
2016-06-29  8:22 ` [PATCH v4 11/13] arm: boards: add mach-qemu and virt64 board Raphael Poggi
2016-06-29  8:22 ` [PATCH v4 12/13] arm: include: swab: use rigth assembly for armv8 Raphael Poggi
2016-06-29  8:22 ` [PATCH v4 13/13] uimage: add define for ARM64 architecture Raphael Poggi
2016-07-04  7:27 ` [PATCH v4 0/12] Add basic support for arm64 Sascha Hauer
2016-07-04  8:38   ` Raphaël Poggi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1467188540-76509-1-git-send-email-poggi.raph@gmail.com \
    --to=poggi.raph@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox