1 | /* |
---|
2 | * hal_do_syscall.c - implementation of syscall handler for TSAR-MIPS32 |
---|
3 | * |
---|
4 | * Author Ghassan Almaless (2008,2009,2010,2011,2012) |
---|
5 | * |
---|
6 | * Copyright (c) UPMC Sorbonne Universites |
---|
7 | * |
---|
8 | * This file is part of ALMOS-MKH. |
---|
9 | * |
---|
10 | * ALMOS-MKH.is free software; you can redistribute it and/or modify it |
---|
11 | * under the terms of the GNU General Public License as published by |
---|
12 | * the Free Software Foundation; version 2.0 of the License. |
---|
13 | * |
---|
14 | * ALMOS-MKH.is distributed in the hope that it will be useful, but |
---|
15 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
17 | * General Public License for more details. |
---|
18 | * |
---|
19 | * You should have received a copy of the GNU General Public License |
---|
20 | * along with ALMOS-MKH.; if not, write to the Free Software Foundation, |
---|
21 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
22 | */ |
---|
23 | |
---|
24 | #include <errno.h> |
---|
25 | #include <syscall.h> |
---|
26 | #include <cpu.h> |
---|
27 | #include <pmm.h> |
---|
28 | #include <thread.h> |
---|
29 | #include <task.h> |
---|
30 | #include <interrupt.h> |
---|
31 | #include <kdmsg.h> |
---|
32 | #include <cpu-regs.h> |
---|
33 | |
---|
34 | #include <hal_internal.h> |
---|
35 | |
---|
36 | extern reg_t do_syscall( reg_t arg0, |
---|
37 | reg_t arg1, |
---|
38 | reg_t arg2, |
---|
39 | reg_t arg3, |
---|
40 | reg_t service_nr ); |
---|
41 | |
---|
42 | static void sys_sigreturn() |
---|
43 | { |
---|
44 | x86_panic((char *)__func__); |
---|
45 | } |
---|
46 | |
---|
47 | thread_t * hal_do_syscall( reg_t * regs_tbl ) |
---|
48 | { |
---|
49 | x86_panic((char *)__func__); |
---|
50 | return NULL; |
---|
51 | } |
---|