Rev 965 | Rev 1005 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 965 | Rev 977 | ||
---|---|---|---|
Line 26... | Line 26... | ||
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | #include <syscall/syscall.h> |
29 | #include <syscall/syscall.h> |
30 | #include <proc/thread.h> |
30 | #include <proc/thread.h> |
- | 31 | #include <mm/as.h> |
|
31 | #include <print.h> |
32 | #include <print.h> |
32 | #include <putchar.h> |
33 | #include <putchar.h> |
33 | #include <ipc/ipc.h> |
34 | #include <ipc/ipc.h> |
34 | #include <errno.h> |
35 | #include <errno.h> |
35 | #include <proc/task.h> |
36 | #include <proc/task.h> |
Line 179... | Line 180... | ||
179 | return ((__native)call) | IPC_CALLID_ANSWERED; |
180 | return ((__native)call) | IPC_CALLID_ANSWERED; |
180 | } |
181 | } |
181 | return (__native)call; |
182 | return (__native)call; |
182 | } |
183 | } |
183 | 184 | ||
- | 185 | static __native sys_mremap(void *address, size_t size, unsigned long flags) |
|
- | 186 | { |
|
- | 187 | return as_remap(AS, (__address) address, size, 0); |
|
- | 188 | } |
|
184 | 189 | ||
185 | syshandler_t syscall_table[SYSCALL_END] = { |
190 | syshandler_t syscall_table[SYSCALL_END] = { |
186 | sys_ctl, |
191 | sys_ctl, |
187 | sys_io, |
192 | sys_io, |
- | 193 | sys_mremap, |
|
188 | sys_ipc_call_sync, |
194 | sys_ipc_call_sync, |
189 | sys_ipc_call_sync_medium, |
195 | sys_ipc_call_sync_medium, |
190 | sys_ipc_call_async, |
196 | sys_ipc_call_async, |
191 | sys_ipc_answer, |
197 | sys_ipc_answer, |
192 | sys_ipc_wait_for_call |
198 | sys_ipc_wait_for_call |