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 250 - (download) (as text) (annotate)
Sat Apr 17 18:57:03 1999 UTC (23 years, 5 months ago) by monnier
File size: 1082 byte(s)
This commit was generated by cvs2svn to compensate for changes in r249,
which included commits to RCS files with non-trunk default branches.
/* 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_ */

ViewVC Help
Powered by ViewVC 1.0.0