URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 666 |
Rev 681 |
Line 46... |
Line 46... |
#define GPR27 112
|
#define GPR27 112
|
#define GPR28 116
|
#define GPR28 116
|
#define GPR29 120
|
#define GPR29 120
|
#define GPR30 124
|
#define GPR30 124
|
#define GPR31 128
|
#define GPR31 128
|
|
#define ORIG_GPR3 132
|
|
#define RESULT 136
|
|
|
#define INT_FRAME_SIZE 132
|
#define INT_FRAME_SIZE 140
|
|
|
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
|
|
/* this struct defines the way the registers are stored on the
|
/* this struct defines the way the registers are stored on the
|
stack during a system call. */
|
stack during a system call. */
|
Line 59... |
Line 61... |
struct pt_regs {
|
struct pt_regs {
|
long pc;
|
long pc;
|
long sr;
|
long sr;
|
long sp;
|
long sp;
|
long gprs[30];
|
long gprs[30];
|
|
long orig_gpr3; /* Used for restarting system calls */
|
|
long result; /* Result of a system call */
|
};
|
};
|
|
|
/*
|
/*
|
* This is the extended stack used by signal handlers and the context
|
* This is the extended stack used by signal handlers and the context
|
* switcher: it's pushed after the normal "struct pt_regs".
|
* switcher: it's pushed after the normal "struct pt_regs".
|
*/
|
*/
|
/* SIMON: This is can not be like this */
|
/* SIMON: This is can not be like this */
|
struct switch_stack {
|
/*struct switch_stack {
|
unsigned long d6;
|
unsigned long d6;
|
unsigned long d7;
|
unsigned long d7;
|
unsigned long a2;
|
unsigned long a2;
|
unsigned long a3;
|
unsigned long a3;
|
unsigned long a4;
|
unsigned long a4;
|
unsigned long a5;
|
unsigned long a5;
|
unsigned long a6;
|
unsigned long a6;
|
unsigned long retpc;
|
unsigned long retpc;
|
};
|
};
|
|
*/
|
#ifdef __KERNEL__
|
#ifdef __KERNEL__
|
|
|
#ifndef PS_S
|
#ifndef PS_S
|
#define PS_S (0x2000)
|
#define PS_S (0x2000)
|
#define PS_M (0x1000)
|
#define PS_M (0x1000)
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.