233d97de70b400b2c9c69c7ea8f1cdab0beb3cbf
[cacao.git] / src / vm / jit / mips / uclinux / md-os.c
1 /* src/vm/jit/mips/uclinux/md-os.c - machine dependent MIPS uClinux functions
2
3    Copyright (C) 2007 R. Grafl, A. Krall, C. Kruegel,
4    C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5    E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6    J. Wenninger, Institut f. Computersprachen - TU Wien
7
8    This file is part of CACAO.
9
10    This program is free software; you can redistribute it and/or
11    modify it under the terms of the GNU General Public License as
12    published by the Free Software Foundation; either version 2, or (at
13    your option) any later version.
14
15    This program is distributed in the hope that it will be useful, but
16    WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    General Public License for more details.
19
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23    02110-1301, USA.
24
25    $Id: md-os.c 7881 2007-05-07 14:16:54Z twisti $
26
27 */
28
29
30 #include "config.h"
31
32 #include <signal.h>
33 #include <ucontext.h>
34
35 #include "vm/types.h"
36
37 #include "vm/vm.h"
38
39
40 /* md_init *********************************************************************
41
42    Do some machine dependent initialization.
43
44 *******************************************************************************/
45
46 void md_init(void)
47 {
48 }
49
50
51 /* md_signal_handler_sigsegv ***************************************************
52
53    NullPointerException signal handler for hardware null pointer
54    check.
55
56 *******************************************************************************/
57
58 void md_signal_handler_sigsegv(int sig, siginfo_t *siginfo, void *_p)
59 {
60         vm_abort("md_signal_handler_sigsegv: IMPLEMENT ME!");
61 }
62
63
64 /* md_signal_handler_sigusr2 ***************************************************
65
66    DOCUMENT ME
67
68 *******************************************************************************/
69
70 void md_signal_handler_sigusr2(int sig, siginfo_t *siginfo, void *_p)
71 {
72         vm_abort("md_signal_handler_sigusr2: IMPLEMENT ME!");
73 }
74
75
76 /* md_critical_section_restart *************************************************
77
78    Search the critical sections tree for a matching section and set
79    the PC to the restart point, if necessary.
80
81 *******************************************************************************/
82
83 #if defined(ENABLE_THREADS)
84 void md_critical_section_restart(ucontext_t *_uc)
85 {
86         vm_abort("md_critical_section_restart: IMPLEMENT ME!");
87 }
88 #endif
89
90
91 /*
92  * These are local overrides for various environment variables in Emacs.
93  * Please do not remove this and leave it at the end of the file, where
94  * Emacs will automagically detect them.
95  * ---------------------------------------------------------------------
96  * Local variables:
97  * mode: c
98  * indent-tabs-mode: t
99  * c-basic-offset: 4
100  * tab-width: 4
101  * End:
102  * vim:noexpandtab:sw=4:ts=4:
103  */