File: sigcontext.h

package info (click to toggle)
linux-kernel-headers 2.6.18-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 38,648 kB
  • ctags: 300,882
  • sloc: ansic: 461,192; asm: 1,555; cpp: 340; makefile: 312; sh: 110
file content (44 lines) | stat: -rw-r--r-- 1,008 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * include/asm-xtensa/sigcontext.h
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 2001 - 2003 Tensilica Inc.
 */

#ifndef _XTENSA_SIGCONTEXT_H
#define _XTENSA_SIGCONTEXT_H

#define _ASMLANGUAGE
#include <asm/processor.h>
#include <asm/coprocessor.h>


struct _cpstate {
	unsigned char _cpstate[XTENSA_CP_EXTRA_SIZE];
} __attribute__ ((aligned (XTENSA_CP_EXTRA_ALIGN)));


struct sigcontext {
	unsigned long	oldmask;

	/* CPU registers */
	unsigned long sc_pc;
	unsigned long sc_ps;
	unsigned long sc_wmask;
	unsigned long sc_windowbase;
	unsigned long sc_windowstart;
	unsigned long sc_lbeg;
	unsigned long sc_lend;
	unsigned long sc_lcount;
	unsigned long sc_sar;
	unsigned long sc_depc;
	unsigned long sc_dareg0;
	unsigned long sc_treg[4];
	unsigned long sc_areg[XCHAL_NUM_AREGS];
	struct _cpstate *sc_cpstate;
};

#endif /* __ASM_XTENSA_SIGCONTEXT_H */