memzero.S 278 B

12345678910111213141516171819
  1. // SPDX-License-Identifier: GPL-2.0
  2. // Copyright (C) 2005-2017 Andes Technology Corporation
  3. #include <linux/linkage.h>
  4. .text
  5. ENTRY(memzero)
  6. beqz $r1, 1f
  7. push $lp
  8. move $r2, $r1
  9. move $r1, #0
  10. push $r0
  11. bal memset
  12. pop $r0
  13. pop $lp
  14. 1:
  15. ret
  16. ENDPROC(memzero)