@@ -15,6 +15,9 @@
.ifeqs "\d", "r6"
st.ab r7, [\s, \incr / 2]
.endif
+ .ifeqs "\d", "0"
+ st.ab \d, [\s, \incr / 2]
+ .endif
.endm
.macro LD64.ab d, s, incr
@@ -7,6 +7,8 @@
#ifndef __ASM_ARC_ENTRY_H
#define __ASM_ARC_ENTRY_H
+#include <asm/asm-offsets.h>
+#include <asm/assembler.h>
#include <asm/unistd.h> /* For NR_syscalls defination */
#include <asm/arcregs.h>
#include <asm/ptrace.h>
@@ -121,13 +121,19 @@ ENTRY(stext)
#endif
; Clear BSS before updating any globals
- ; XXX: use ZOL here
mov r5, __bss_start
sub r6, __bss_stop, r5
+#ifndef CONFIG_ARC_LACKS_ZOL
lsr.f lp_count, r6, 2
lpnz 1f
st.ab 0, [r5, 4]
1:
+#else
+ lsr r6, r6, 3
+1:
+ ST64.ab 0, r5, 8
+ DBNZR r6, 1b
+#endif
; Uboot - kernel ABI
; r0 = [0] No uboot interaction, [1] cmdline in r2, [2] DTB in r2
@@ -107,7 +107,7 @@ SECTIONS
_edata = .;
- BSS_SECTION(4, 4, 4)
+ BSS_SECTION(8, 8, 8)
#ifdef CONFIG_ARC_DW2_UNWIND
. = ALIGN(PAGE_SIZE);