[PATCH 03/12] arm: introduce lib64 for arm64 related stuff

Sascha Hauer s.hauer at pengutronix.de
Fri Jun 3 01:01:31 PDT 2016


On Thu, Jun 02, 2016 at 10:06:49AM +0200, Raphael Poggi wrote:
> Signed-off-by: Raphael Poggi <poggi.raph at gmail.com>
> ---
>  arch/arm/lib64/Makefile         |  16 ++
>  arch/arm/lib64/armlinux.c       | 275 +++++++++++++++++++
>  arch/arm/lib64/asm-offsets.c    |  16 ++
>  arch/arm/lib64/barebox.lds      | 125 +++++++++
>  arch/arm/lib64/barebox.lds.S    | 125 +++++++++
>  arch/arm/lib64/bootm.c          | 572 ++++++++++++++++++++++++++++++++++++++++
>  arch/arm/lib64/bootu.c          |  44 ++++
>  arch/arm/lib64/bootz.c          | 136 ++++++++++
>  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/lib64/module.c         |  98 +++++++
>  arch/arm/lib64/pbl.lds.S        |  96 +++++++
>  arch/arm/lib64/runtime-offset.S |  52 ++++
>  arch/arm/lib64/unwind.c         | 349 ++++++++++++++++++++++++
>  16 files changed, 2412 insertions(+)
>  create mode 100644 arch/arm/lib64/barebox.lds

This file shouldn't be necessary, it's generated from barebox.lds.S

>  create mode 100644 arch/arm/lib64/Makefile
>  create mode 100644 arch/arm/lib64/barebox.lds.S
>  create mode 100644 arch/arm/lib64/asm-offsets.c
>  create mode 100644 arch/arm/lib64/copy_template.S
>  create mode 100644 arch/arm/lib64/div0.c
>  create mode 100644 arch/arm/lib64/memcpy.S
>  create mode 100644 arch/arm/lib64/memset.S

These are most likely fine as they are. Can you make a separate patch
from them?

>  create mode 100644 arch/arm/lib64/bootm.c

Not sure how much should be merged into common code for arm/arm64. We
can keep it like this for now.

>  create mode 100644 arch/arm/lib64/bootu.c
>  create mode 100644 arch/arm/lib64/bootz.c

These shouldn't be needed for arm64, bootm.c is enough.

>  create mode 100644 arch/arm/lib64/module.c

We can drop module support for arm64. I guess this would need
substantial changes for arm64 anyway, so we can remove it here.

>  create mode 100644 arch/arm/lib64/pbl.lds.S
>  create mode 100644 arch/arm/lib64/runtime-offset.S
>  create mode 100644 arch/arm/lib64/unwind.c

How much of this code is already used? If it's unused you can remove it
for now.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list