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 | |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 23 | .global __sys_rt_sigreturn |
| 24 | .type __sys_rt_sigreturn,@function |
| 25 | __sys_rt_sigreturn: |
| 26 | mov r12, sp |
| 27 | rjmp sys_rt_sigreturn |
| 28 | |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 29 | .global __sys_mmap2 |
| 30 | .type __sys_mmap2,@function |
| 31 | __sys_mmap2: |
| 32 | pushm lr |
| 33 | st.w --sp, ARG6 |
Al Viro | f8b7256 | 2009-11-30 17:37:04 -0500 | [diff] [blame] | 34 | call sys_mmap_pgoff |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 35 | sub sp, -4 |
| 36 | popm pc |
| 37 | |
| 38 | .global __sys_sendto |
| 39 | .type __sys_sendto,@function |
| 40 | __sys_sendto: |
| 41 | pushm lr |
| 42 | st.w --sp, ARG6 |
Ben Nizette | 8d29b7b | 2009-01-14 09:32:19 +1100 | [diff] [blame] | 43 | call sys_sendto |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 44 | sub sp, -4 |
| 45 | popm pc |
| 46 | |
| 47 | .global __sys_recvfrom |
| 48 | .type __sys_recvfrom,@function |
| 49 | __sys_recvfrom: |
| 50 | pushm lr |
| 51 | st.w --sp, ARG6 |
Ben Nizette | 8d29b7b | 2009-01-14 09:32:19 +1100 | [diff] [blame] | 52 | call sys_recvfrom |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 53 | sub sp, -4 |
| 54 | popm pc |
| 55 | |
| 56 | .global __sys_pselect6 |
| 57 | .type __sys_pselect6,@function |
| 58 | __sys_pselect6: |
| 59 | pushm lr |
| 60 | st.w --sp, ARG6 |
Ben Nizette | 8d29b7b | 2009-01-14 09:32:19 +1100 | [diff] [blame] | 61 | call sys_pselect6 |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 62 | sub sp, -4 |
| 63 | popm pc |
| 64 | |
| 65 | .global __sys_splice |
| 66 | .type __sys_splice,@function |
| 67 | __sys_splice: |
| 68 | pushm lr |
| 69 | st.w --sp, ARG6 |
Ben Nizette | 8d29b7b | 2009-01-14 09:32:19 +1100 | [diff] [blame] | 70 | call sys_splice |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 71 | sub sp, -4 |
| 72 | popm pc |
Haavard Skinnemoen | bbfd2bf | 2006-11-06 14:02:44 +0100 | [diff] [blame] | 73 | |
| 74 | .global __sys_epoll_pwait |
| 75 | .type __sys_epoll_pwait,@function |
| 76 | __sys_epoll_pwait: |
| 77 | pushm lr |
| 78 | st.w --sp, ARG6 |
Ben Nizette | 8d29b7b | 2009-01-14 09:32:19 +1100 | [diff] [blame] | 79 | call sys_epoll_pwait |
Haavard Skinnemoen | bbfd2bf | 2006-11-06 14:02:44 +0100 | [diff] [blame] | 80 | sub sp, -4 |
| 81 | popm pc |
Hans-Christian Egtvedt | 73d4393 | 2008-09-17 13:39:45 +0200 | [diff] [blame] | 82 | |
| 83 | .global __sys_sync_file_range |
| 84 | .type __sys_sync_file_range,@function |
| 85 | __sys_sync_file_range: |
| 86 | pushm lr |
| 87 | st.w --sp, ARG6 |
Ben Nizette | 8d29b7b | 2009-01-14 09:32:19 +1100 | [diff] [blame] | 88 | call sys_sync_file_range |
Hans-Christian Egtvedt | 73d4393 | 2008-09-17 13:39:45 +0200 | [diff] [blame] | 89 | sub sp, -4 |
| 90 | popm pc |