source: trunk/sys/dietlibc/cpu/mipsel/cpu-jmp.h @ 152

Last change on this file since 152 was 1, checked in by alain, 8 years ago

First import

File size: 1.2 KB
Line 
1/*
2   This file is part of MutekP.
3 
4   MutekP is free software; you can redistribute it and/or modify it
5   under the terms of the GNU General Public License as published by
6   the Free Software Foundation; either version 2 of the License, or
7   (at your option) any later version.
8 
9   MutekP is distributed in the hope that it will be useful, but
10   WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   General Public License for more details.
13 
14   You should have received a copy of the GNU General Public License
15   along with MutekP; if not, write to the Free Software Foundation,
16   Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 
18   UPMC / LIP6 / SOC (c) 2009
19   Copyright Ghassan Almaless <ghassan.almaless@gmail.com>
20*/
21
22#ifndef _CPU_JMP_H_
23#define _CPU_JMP_H_
24
25typedef unsigned int reg_t;
26
27struct __jmp_buffer_s
28{
29  reg_t s0_16;
30  reg_t s1_17;
31  reg_t s2_18;
32  reg_t s3_19;
33  reg_t s4_20;
34  reg_t s5_21;
35  reg_t s6_22;
36  reg_t s7_23;
37  reg_t gp_28;
38  reg_t sp_29;
39  reg_t fp_30;
40  reg_t ra_31;
41}__attribute__ ((packed));
42
43
44extern int  __setjmp (struct __jmp_buffer_s *env);
45extern void __longjmp(struct __jmp_buffer_s *env, int val);
46
47#endif  /* __CPU_JMP_H_ */
Note: See TracBrowser for help on using the repository browser.