blob: bb1dd1a4d59811b471ab47766038bb96de9660c5 [file] [log] [blame]
San Mehat75c5e252010-02-23 15:55:29 -08001/* autogenerated by gensyscalls.py */
Elliott Hughescda62092013-03-22 13:50:44 -07002#include <asm/unistd.h>
Elliott Hughes9aceab52013-03-12 14:57:30 -07003#include <linux/err.h>
Kenny Rootfb723c82011-02-17 10:47:44 -08004#include <machine/asm.h>
San Mehat75c5e252010-02-23 15:55:29 -08005
Kenny Rootfb723c82011-02-17 10:47:44 -08006ENTRY(ioprio_get)
Matthieu Castetfaa0fdb2013-01-16 14:02:50 +01007 mov ip, r7
San Mehat75c5e252010-02-23 15:55:29 -08008 ldr r7, =__NR_ioprio_get
9 swi #0
Matthieu Castetfaa0fdb2013-01-16 14:02:50 +010010 mov r7, ip
Elliott Hughes9aceab52013-03-12 14:57:30 -070011 cmn r0, #(MAX_ERRNO + 1)
12 bxls lr
13 neg r0, r0
14 b __set_errno
Kenny Rootfb723c82011-02-17 10:47:44 -080015END(ioprio_get)