OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-sparc/] [sigcontext.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/* $Id: sigcontext.h,v 1.1 2005-12-20 11:32:11 jcastillo Exp $ */
2
#ifndef _ASMsparc_SIGCONTEXT_H
3
#define _ASMsparc_SIGCONTEXT_H
4
 
5
#include <asm/ptrace.h>
6
 
7
#define SUNOS_MAXWIN   31
8
 
9
#ifndef __ASSEMBLY__
10
 
11
/* SunOS system call sigstack() uses this arg. */
12
struct sunos_sigstack {
13
        unsigned long sig_sp;
14
        int onstack_flag;
15
};
16
 
17
/* This is what SunOS does, so shall I. */
18
struct sigcontext_struct {
19
        int sigc_onstack;      /* state to restore */
20
        int sigc_mask;         /* sigmask to restore */
21
        int sigc_sp;           /* stack pointer */
22
        int sigc_pc;           /* program counter */
23
        int sigc_npc;          /* next program counter */
24
        int sigc_psr;          /* for condition codes etc */
25
        int sigc_g1;           /* User uses these two registers */
26
        int sigc_o0;           /* within the trampoline code. */
27
 
28
        /* Now comes information regarding the users window set
29
         * at the time of the signal.
30
         */
31
        int sigc_oswins;       /* outstanding windows */
32
 
33
        /* stack ptrs for each regwin buf */
34
        char *sigc_spbuf[SUNOS_MAXWIN];
35
 
36
        /* Windows to restore after signal */
37
        struct reg_window sigc_wbuf[SUNOS_MAXWIN];
38
};
39
#endif /* !(__ASSEMBLY__) */
40
 
41
#endif /* !(_ASMsparc_SIGCONTEXT_H) */
42
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.