summaryrefslogtreecommitdiff
path: root/arch/ia64/include/asm/sigcontext.h
blob: 57ff777bcc40a583bb4347b4534ed9f875ff9499 (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef _ASM_IA64_SIGCONTEXT_H
#define _ASM_IA64_SIGCONTEXT_H

/*
 * Copyright (C) 1998, 1999, 2001 Hewlett-Packard Co
 * Copyright (C) 1998, 1999, 2001 David Mosberger-Tang <davidm@hpl.hp.com>
 */

#include <asm/fpu.h>

#define IA64_SC_FLAG_ONSTACK_BIT		0	/* is handler running on signal stack? */
#define IA64_SC_FLAG_IN_SYSCALL_BIT		1	/* did signal interrupt a syscall? */
#define IA64_SC_FLAG_FPH_VALID_BIT		2	/* is state in f[32]-f[127] valid? */

#define IA64_SC_FLAG_ONSTACK		(1 << IA64_SC_FLAG_ONSTACK_BIT)
#define IA64_SC_FLAG_IN_SYSCALL		(1 << IA64_SC_FLAG_IN_SYSCALL_BIT)
#define IA64_SC_FLAG_FPH_VALID		(1 << IA64_SC_FLAG_FPH_VALID_BIT)

# ifndef __ASSEMBLY__

/*
 * Note on handling of register backing store: sc_ar_bsp contains the address that would
 * be found in ar.bsp after executing a "cover" instruction the context in which the
 * signal was raised.  If signal delivery required switching to an alternate signal stack
 * (sc_rbs_base is not NULL), the "dirty" partition (as it would exist after executing the
 * imaginary "cover" instruction) is backed by the *alternate* signal stack, not the
 * original one.  In this case, sc_rbs_base contains the base address of the new register
 * backing store.  The number of registers in the dirty partition can be calculated as:
 *
 *   ndirty = ia64_rse_num_regs(sc_rbs_base, sc_rbs_base + (sc_loadrs >> 16))
 *
 */

struct sigcontext {
	unsigned long		sc_flags;	/* see manifest constants above */
	unsigned long		sc_nat;		/* bit i == 1 iff scratch reg gr[i] is a NaT */
	stack_t			sc_stack;	/* previously active stack */

	unsigned long		sc_ip;		/* instruction pointer */
	unsigned long		sc_cfm;		/* current frame marker */
	unsigned long		sc_um;		/* user mask bits */
	unsigned long		sc_ar_rsc;	/* register stack configuration register */
	unsigned long		sc_ar_bsp;	/* backing store pointer */
	unsigned long		sc_ar_rnat;	/* RSE NaT collection register */
	unsigned long		sc_ar_ccv;	/* compare and exchange compare value register */
	unsigned long		sc_ar_unat;	/* ar.unat of interrupted context */
	unsigned long		sc_ar_fpsr;	/* floating-point status register */
	unsigned long		sc_ar_pfs;	/* previous function state */
	unsigned long		sc_ar_lc;	/* loop count register */
	unsigned long		sc_pr;		/* predicate registers */
	unsigned long		sc_br[8];	/* branch registers */
	/* Note: sc_gr[0] is used as the "uc_link" member of ucontext_t */
	unsigned long		sc_gr[32];	/* general registers (static partition) */
	struct ia64_fpreg	sc_fr[128];	/* floating-point registers */

	unsigned long		sc_rbs_base;	/* NULL or new base of sighandler's rbs */
	unsigned long		sc_loadrs;	/* see description above */

	unsigned long		sc_ar25;	/* cmp8xchg16 uses this */
	unsigned long		sc_ar26;	/* rsvd for scratch use */
	unsigned long		sc_rsvd[12];	/* reserved for future use */
	/*
	 * The mask must come last so we can increase _NSIG_WORDS
	 * without breaking binary compatibility.
	 */
	sigset_t		sc_mask;	/* signal mask to restore after handler returns */
};

# endif /* __ASSEMBLY__ */
#endif /* _ASM_IA64_SIGCONTEXT_H */
Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2024-09-23Branch libreoffice-24-8-2libreoffice-24-8-2Christian Lohmaier0-0/+0
2024-09-23update translations for 24.8.2 rc1Christian Lohmaier877-29645/+30559
2024-09-09update translations for 24.8.1 rc1Christian Lohmaier47-409/+408
2024-09-06update translations for 24.8.1 rc2Christian Lohmaier294-4826/+4802
2024-08-23update translations for 24.8.1 rc1Christian Lohmaier464-7996/+9278
2024-08-20Updated Slovenian translationMartin Srebotnjak15-50/+60
2024-08-08update translations for 24.8.0 rc3Christian Lohmaier330-7999/+7194
2024-07-26update translations for 24.8.0 rc2/masterChristian Lohmaier78-778/+848
2024-07-24update translations for 24.8.0 rc2Christian Lohmaier334-5629/+5300
2024-07-15Updated Slovenian translationMartin Srebotnjak51-1774/+2251
2024-07-15update translations for master/24-8Christian Lohmaier449-6941/+7245
2024-07-08update translations for 24.8.0 rc1/masterChristian Lohmaier752-13300/+15854
2024-06-28update translations for 24.8/masterChristian Lohmaier1401-55124/+51822
2024-06-28update translations for 24-8/masterChristian Lohmaier696-19429/+27757
2024-06-17update translations for 24-8/masterChristian Lohmaier888-57427/+58764
2024-06-11Branch libreoffice-24-8Christian Lohmaier0-0/+0
2024-06-11update translations for master / 24.8.0 beta1libreoffice-24-8-branch-pointChristian Lohmaier1034-10831/+33947
2024-06-06update translations for master / 24.8.0 beta1Christian Lohmaier897-61626/+70322
2024-06-03update translations for masterChristian Lohmaier