Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/runtime/mach-dep/mklinux-regs.h
ViewVC logotype

View of /sml/trunk/src/runtime/mach-dep/mklinux-regs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651 - (download) (as text) (annotate)
Thu Jun 1 18:34:03 2000 UTC (20 years ago) by monnier
File size: 1082 byte(s)
bring revisions from the vendor branch to the trunk
/* mklinux-regs.h
 *
 * COPYRIGHT (c) 1997 Bell Labs, Lucent Technologies.
 *
 * This defines the layout of the machine registers as they are
 * passed to a signal handler in MkLinux on the PowerPC.  It was
 * reverse engineered from the files:
 *
 *	mklinux/src/arch/osfmach3_ppc/kernel/signal.c
 *	mklinux/src/include/asm-ppc/ptrace.h
 *
 * in the MkLinux sources (DR2.1 update 4).
 *
 * A MkLinux signal handler has the prototype
 *
 *	void handler (int signr, struct mklinux_ppc_regs *rp);
 */

#ifndef _MKLINUX_REGS_H_
#define _MKLINUX_REGS_H_

#include <asm/ptrace.h>

struct mklinux_ppc_regs {
    unsigned long	gpr[32];
    unsigned long	nip;		/* aka PC */
    unsigned long	msr;
    unsigned long	orig_r3;
    unsigned long	ctr;
    unsigned long	lnk;
    unsigned long	xer;
    unsigned long	ccr;
    unsigned long	mq;
    unsigned long	trap;
    unsigned long	dar;
    unsigned long	dsisr;
    unsigned long	result;
    unsigned long	pad1[4];	/* pad to 48 words */
    double		fpr[32];
    unsigned long	pad2;
    unsigned long	fpscr;
};

#endif /* !_MKLINUX_REGS_H_ */


root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0