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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-sparc/] [user.h] - Diff between revs 1765 and 1782

Only display areas with differences | Details | Blame | View Log

Rev 1765 Rev 1782
/* $Id: user.h,v 1.1 2005-12-20 11:32:12 jcastillo Exp $
/* $Id: user.h,v 1.1 2005-12-20 11:32:12 jcastillo Exp $
 * asm-sparc/user.h: Core file definitions for the Sparc.
 * asm-sparc/user.h: Core file definitions for the Sparc.
 *
 *
 * Copyright (C) 1995 (davem@caip.rutgers.edu)
 * Copyright (C) 1995 (davem@caip.rutgers.edu)
 */
 */
#ifndef _SPARC_USER_H
#ifndef _SPARC_USER_H
#define _SPARC_USER_H
#define _SPARC_USER_H
 
 
struct sunos_regs {
struct sunos_regs {
        unsigned long psr, pc, npc, y;
        unsigned long psr, pc, npc, y;
        unsigned long regs[15];
        unsigned long regs[15];
};
};
 
 
struct sunos_fpqueue {
struct sunos_fpqueue {
        unsigned long *addr;
        unsigned long *addr;
        unsigned long inst;
        unsigned long inst;
};
};
 
 
struct sunos_fp {
struct sunos_fp {
        union {
        union {
                unsigned long regs[32];
                unsigned long regs[32];
                double reg_dbls[16];
                double reg_dbls[16];
        } fregs;
        } fregs;
        unsigned long fsr;
        unsigned long fsr;
        unsigned long flags;
        unsigned long flags;
        unsigned long extra;
        unsigned long extra;
        unsigned long fpq_count;
        unsigned long fpq_count;
        struct sunos_fpqueue fpq[16];
        struct sunos_fpqueue fpq[16];
};
};
 
 
struct sunos_fpu {
struct sunos_fpu {
        struct sunos_fp fpstatus;
        struct sunos_fp fpstatus;
};
};
 
 
/* The SunOS core file header layout. */
/* The SunOS core file header layout. */
struct user {
struct user {
        unsigned long magic;
        unsigned long magic;
        unsigned long len;
        unsigned long len;
        struct sunos_regs regs;
        struct sunos_regs regs;
        struct exec uexec;
        struct exec uexec;
        int           signal;
        int           signal;
        size_t        u_tsize; /* all of these in bytes! */
        size_t        u_tsize; /* all of these in bytes! */
        size_t        u_dsize;
        size_t        u_dsize;
        size_t        u_ssize;
        size_t        u_ssize;
        char          u_comm[17];
        char          u_comm[17];
        struct sunos_fpu fpu;
        struct sunos_fpu fpu;
        unsigned long sigcode;   /* Special sigcontext subcode, if any */
        unsigned long sigcode;   /* Special sigcontext subcode, if any */
};
};
 
 
#define NBPG                   PAGE_SIZE
#define NBPG                   PAGE_SIZE
#define UPAGES                 1
#define UPAGES                 1
#define HOST_TEXT_START_ADDR   (u.start_code)
#define HOST_TEXT_START_ADDR   (u.start_code)
#define HOST_DATA_START_ADDR   (u.start_data)
#define HOST_DATA_START_ADDR   (u.start_data)
#define HOST_STACK_END_ADDR    (u.start_stack + u.u_ssize * NBPG)
#define HOST_STACK_END_ADDR    (u.start_stack + u.u_ssize * NBPG)
#define SUNOS_CORE_MAGIC       0x080456
#define SUNOS_CORE_MAGIC       0x080456
 
 
#endif /* !(_SPARC_USER_H) */
#endif /* !(_SPARC_USER_H) */
 
 

powered by: WebSVN 2.1.0

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