Newer
Older
barebox / arch / mips / include / asm / ptrace.h
@Antony Pavlov Antony Pavlov on 4 Dec 2013 919 bytes MIPS: add asm-offsets.h generation
/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 1994, 95, 96, 97, 98, 99, 2000 by Ralf Baechle
 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
 */

#ifndef _ASM_PTRACE_H
#define _ASM_PTRACE_H

/*
 * This struct defines the way the registers are stored on the stack during an
 * exception. As usual the registers k0/k1 aren't being saved.
 */
struct pt_regs {
#ifdef CONFIG_32BIT
	/* Pad bytes for argument save space on the stack. */
	unsigned long pad0[6];
#endif

	/* Saved main processor registers. */
	unsigned long regs[32];

	/* Saved special registers. */
	unsigned long cp0_status;
	unsigned long hi;
	unsigned long lo;
	unsigned long cp0_badvaddr;
	unsigned long cp0_cause;
	unsigned long cp0_epc;
} __attribute__ ((aligned (8)));

#endif /* _ASM_PTRACE_H */