blob: 5ad6132f8905723f37e52234d2c12bf7e446c710 [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
Nick Kralevichf44de272012-01-13 14:03:01 -08004
5ENTRY(personality)
Matthieu Castetfaa0fdb2013-01-16 14:02:50 +01006 mov ip, r7
Christopher Ferris6e45d372016-04-27 18:31:02 -07007 .cfi_register r7, ip
Nick Kralevichf44de272012-01-13 14:03:01 -08008 ldr r7, =__NR_personality
9 swi #0
Matthieu Castetfaa0fdb2013-01-16 14:02:50 +010010 mov r7, ip
Christopher Ferris6e45d372016-04-27 18:31:02 -070011 .cfi_restore r7
Elliott Hughes9aceab52013-03-12 14:57:30 -070012 cmn r0, #(MAX_ERRNO + 1)
13 bxls lr
14 neg r0, r0
Elliott Hughes7efad832014-09-08 15:25:01 -070015 b __set_errno_internal
Nick Kralevichf44de272012-01-13 14:03:01 -080016END(personality)