blob: b4f5ea86d7b5278ccb40f290bc3bb46f1cb91e6f [file] [log] [blame]
Elliott Hughes8465e962017-09-27 16:33:35 -07001/* Generated by gensyscalls.py. Do not edit. */
2
3#include <private/bionic_asm.h>
4
5ENTRY(getrandom)
6 .set push
7 .set noreorder
Elliott Hughesab413c52017-10-13 13:22:24 -07008 li $v0, __NR_getrandom
Elliott Hughes8465e962017-09-27 16:33:35 -07009 syscall
Elliott Hughesab413c52017-10-13 13:22:24 -070010 bnez $a3, 1f
11 move $a0, $v0
12 j $ra
Elliott Hughes8465e962017-09-27 16:33:35 -070013 nop
141:
Elliott Hughesab413c52017-10-13 13:22:24 -070015 move $t0, $ra
16 bal 2f
Elliott Hughes8465e962017-09-27 16:33:35 -070017 nop
182:
Elliott Hughesab413c52017-10-13 13:22:24 -070019 .cpsetup $ra, $t1, 2b
20 LA $t9, __set_errno_internal
Elliott Hughes8465e962017-09-27 16:33:35 -070021 .cpreturn
Elliott Hughesab413c52017-10-13 13:22:24 -070022 j $t9
23 move $ra, $t0
Elliott Hughes8465e962017-09-27 16:33:35 -070024 .set pop
25END(getrandom)