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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-sparc/] [user.h] - Blame information for rev 1633

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/* $Id: user.h,v 1.1 2005-12-20 11:32:12 jcastillo Exp $
2
 * asm-sparc/user.h: Core file definitions for the Sparc.
3
 *
4
 * Copyright (C) 1995 (davem@caip.rutgers.edu)
5
 */
6
#ifndef _SPARC_USER_H
7
#define _SPARC_USER_H
8
 
9
struct sunos_regs {
10
        unsigned long psr, pc, npc, y;
11
        unsigned long regs[15];
12
};
13
 
14
struct sunos_fpqueue {
15
        unsigned long *addr;
16
        unsigned long inst;
17
};
18
 
19
struct sunos_fp {
20
        union {
21
                unsigned long regs[32];
22
                double reg_dbls[16];
23
        } fregs;
24
        unsigned long fsr;
25
        unsigned long flags;
26
        unsigned long extra;
27
        unsigned long fpq_count;
28
        struct sunos_fpqueue fpq[16];
29
};
30
 
31
struct sunos_fpu {
32
        struct sunos_fp fpstatus;
33
};
34
 
35
/* The SunOS core file header layout. */
36
struct user {
37
        unsigned long magic;
38
        unsigned long len;
39
        struct sunos_regs regs;
40
        struct exec uexec;
41
        int           signal;
42
        size_t        u_tsize; /* all of these in bytes! */
43
        size_t        u_dsize;
44
        size_t        u_ssize;
45
        char          u_comm[17];
46
        struct sunos_fpu fpu;
47
        unsigned long sigcode;   /* Special sigcontext subcode, if any */
48
};
49
 
50
#define NBPG                   PAGE_SIZE
51
#define UPAGES                 1
52
#define HOST_TEXT_START_ADDR   (u.start_code)
53
#define HOST_DATA_START_ADDR   (u.start_data)
54
#define HOST_STACK_END_ADDR    (u.start_stack + u.u_ssize * NBPG)
55
#define SUNOS_CORE_MAGIC       0x080456
56
 
57
#endif /* !(_SPARC_USER_H) */

powered by: WebSVN 2.1.0

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