1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #include <linux/linkage.h>
8 /* Check if the start addr is aligned. */
13 bnez r1, .L_start_not_aligned
16 .L_start_addr_aligned:
17 /* Check if all the bytes in the word are not zero. */
59 br .L_start_addr_aligned
82 # endif /* !__CSKYBE__ */
89 .L_start_not_aligned_loop:
95 BNEZAD (r2, .L_start_not_aligned_loop)
96 br .L_start_addr_aligned