2 #include <linux/unistd.h>
4 struct mmap_arg_struct {
13 void * __mmap2(void * addr, size_t len, int prot, int flags,
16 struct mmap_arg_struct args = {
20 (unsigned long) flags,
22 (unsigned long) offset,
25 register struct mmap_arg_struct *__arg1 asm("2") = &args;
26 register long __svcres asm("2");
29 __asm__ __volatile__ (
34 : "1", "cc", "memory");
36 if (__res >= (unsigned long)-125) {