]> asedeno.scripts.mit.edu Git - linux.git/blob - arch/nds32/lib/memzero.S
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
[linux.git] / arch / nds32 / lib / memzero.S
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2005-2017 Andes Technology Corporation
3
4 #include <linux/linkage.h>
5
6         .text
7 ENTRY(memzero)
8         beqz    $r1, 1f
9         push    $lp
10         move    $r2, $r1
11         move    $r1, #0
12         push    $r0
13         bal     memset
14         pop     $r0
15         pop     $lp
16 1:
17         ret
18 ENDPROC(memzero)