diff options
author | Raphael Poggi <poggi.raph@gmail.com> | 2016-07-04 13:52:47 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-07-06 11:23:48 +0200 |
commit | 928cc6f4ee1c162d8d90e40443f37fcc933ab84f (patch) | |
tree | eb3a47e0d78db9c81aa68e3a6819fcb2de643c9b /arch/arm/cpu/setupc_64.S | |
parent | e1287b1a8b27d366f459e890fb260deea2906749 (diff) | |
download | barebox-928cc6f4ee1c162d8d90e40443f37fcc933ab84f.tar.gz barebox-928cc6f4ee1c162d8d90e40443f37fcc933ab84f.tar.xz |
arm: cpu: add arm64 specific code
This patch adds arm64 specific codes, which are:
- exception support
- cache support
- rework Makefile to support arm64
Signed-off-by: Raphael Poggi <poggi.raph@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/cpu/setupc_64.S')
-rw-r--r-- | arch/arm/cpu/setupc_64.S | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/cpu/setupc_64.S b/arch/arm/cpu/setupc_64.S new file mode 100644 index 0000000000..3515854784 --- /dev/null +++ b/arch/arm/cpu/setupc_64.S @@ -0,0 +1,18 @@ +#include <linux/linkage.h> +#include <asm/sections.h> + +.section .text.setupc + +/* + * setup_c: clear bss + */ +ENTRY(setup_c) + mov x15, x30 + ldr x0, =__bss_start + mov x1, #0 + ldr x2, =__bss_stop + sub x2, x2, x0 + bl memset /* clear bss */ + mov x30, x15 + ret +ENDPROC(setup_c) |