Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2005-2006 Atmel Corporation |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | /* |
| 10 | * Stubs for syscalls that require access to pt_regs or that take more |
| 11 | * than five parameters. |
| 12 | */ |
| 13 | |
| 14 | #define ARG6 r3 |
| 15 | |
| 16 | .text |
| 17 | .global __sys_rt_sigsuspend |
| 18 | .type __sys_rt_sigsuspend,@function |
| 19 | __sys_rt_sigsuspend: |
| 20 | mov r10, sp |
| 21 | rjmp sys_rt_sigsuspend |
| 22 | |
| 23 | .global __sys_sigaltstack |
| 24 | .type __sys_sigaltstack,@function |
| 25 | __sys_sigaltstack: |
| 26 | mov r10, sp |
| 27 | rjmp sys_sigaltstack |
| 28 | |
| 29 | .global __sys_rt_sigreturn |
| 30 | .type __sys_rt_sigreturn,@function |
| 31 | __sys_rt_sigreturn: |
| 32 | mov r12, sp |
| 33 | rjmp sys_rt_sigreturn |
| 34 | |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 35 | .global __sys_mmap2 |
| 36 | .type __sys_mmap2,@function |
| 37 | __sys_mmap2: |
| 38 | pushm lr |
| 39 | st.w --sp, ARG6 |
Al Viro | f8b7256 | 2009-11-30 17:37:04 -0500 | [diff] [blame] | 40 | call sys_mmap_pgoff |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 41 | sub sp, -4 |
| 42 | popm pc |
| 43 | |
| 44 | .global __sys_sendto |
| 45 | .type __sys_sendto,@function |
| 46 | __sys_sendto: |
| 47 | pushm lr |
| 48 | st.w --sp, ARG6 |
Ben Nizette | 8d29b7b | 2009-01-14 09:32:19 +1100 | [diff] [blame] | 49 | call sys_sendto |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 50 | sub sp, -4 |
| 51 | popm pc |
| 52 | |
| 53 | .global __sys_recvfrom |
| 54 | .type __sys_recvfrom,@function |
| 55 | __sys_recvfrom: |
| 56 | pushm lr |
| 57 | st.w --sp, ARG6 |
Ben Nizette | 8d29b7b | 2009-01-14 09:32:19 +1100 | [diff] [blame] | 58 | call sys_recvfrom |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 59 | sub sp, -4 |
| 60 | popm pc |
| 61 | |
| 62 | .global __sys_pselect6 |
| 63 | .type __sys_pselect6,@function |
| 64 | __sys_pselect6: |
| 65 | pushm lr |
| 66 | st.w --sp, ARG6 |
Ben Nizette | 8d29b7b | 2009-01-14 09:32:19 +1100 | [diff] [blame] | 67 | call sys_pselect6 |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 68 | sub sp, -4 |
| 69 | popm pc |
| 70 | |
| 71 | .global __sys_splice |
| 72 | .type __sys_splice,@function |
| 73 | __sys_splice: |
| 74 | pushm lr |
| 75 | st.w --sp, ARG6 |
Ben Nizette | 8d29b7b | 2009-01-14 09:32:19 +1100 | [diff] [blame] | 76 | call sys_splice |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 77 | sub sp, -4 |
| 78 | popm pc |
Haavard Skinnemoen | bbfd2bf | 2006-11-06 14:02:44 +0100 | [diff] [blame] | 79 | |
| 80 | .global __sys_epoll_pwait |
| 81 | .type __sys_epoll_pwait,@function |
| 82 | __sys_epoll_pwait: |
| 83 | pushm lr |
| 84 | st.w --sp, ARG6 |
Ben Nizette | 8d29b7b | 2009-01-14 09:32:19 +1100 | [diff] [blame] | 85 | call sys_epoll_pwait |
Haavard Skinnemoen | bbfd2bf | 2006-11-06 14:02:44 +0100 | [diff] [blame] | 86 | sub sp, -4 |
| 87 | popm pc |
Hans-Christian Egtvedt | 73d4393 | 2008-09-17 13:39:45 +0200 | [diff] [blame] | 88 | |
| 89 | .global __sys_sync_file_range |
| 90 | .type __sys_sync_file_range,@function |
| 91 | __sys_sync_file_range: |
| 92 | pushm lr |
| 93 | st.w --sp, ARG6 |
Ben Nizette | 8d29b7b | 2009-01-14 09:32:19 +1100 | [diff] [blame] | 94 | call sys_sync_file_range |
Hans-Christian Egtvedt | 73d4393 | 2008-09-17 13:39:45 +0200 | [diff] [blame] | 95 | sub sp, -4 |
| 96 | popm pc |