blob: 02afbe858b6bb668a82481fd6457402119e66b16 [file] [log] [blame]
Serban Constantinescu7f8863d2013-10-10 23:05:06 +01001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
Serban Constantinescu7f8863d2013-10-10 23:05:06 +01004
5ENTRY(munmap)
6 stp x29, x30, [sp, #-16]!
7 mov x29, sp
8 str x8, [sp, #-16]!
9
10 mov x8, __NR_munmap
11 svc #0
12
13 ldr x8, [sp], #16
14 ldp x29, x30, [sp], #16
15
16 cmn x0, #(MAX_ERRNO + 1)
17 cneg x0, x0, hi
18 b.hi __set_errno
19
20 ret
21END(munmap)