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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [include/] [asm-mips/] [reg.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
2
 * Makefile for MIPS Linux main source directory
3
 *
4
 * This file is subject to the terms and conditions of the GNU General Public
5
 * License.  See the file "COPYING" in the main directory of this archive
6
 * for more details.
7
 *
8
 * Copyright (C) 1995 by Ralf Baechle
9
 */
10
#ifndef __ASM_MIPS_REG_H
11
#define __ASM_MIPS_REG_H
12
 
13
/*
14
 * This defines/structures correspond to the register layout on stack -
15
 * if the order here is changed, it needs to be updated in
16
 * include/asm-mips/stackframe.h
17
 */
18
#define EF_REG1       5
19
#define EF_REG2       6
20
#define EF_REG3       7
21
#define EF_REG4       8
22
#define EF_REG5       9
23
#define EF_REG6       10
24
#define EF_REG7       11
25
#define EF_REG8       12
26
#define EF_REG9       13
27
#define EF_REG10      14
28
#define EF_REG11      15
29
#define EF_REG12      16
30
#define EF_REG13      17
31
#define EF_REG14      18
32
#define EF_REG15      19
33
#define EF_REG16      20
34
#define EF_REG17      21
35
#define EF_REG18      22
36
#define EF_REG19      23
37
#define EF_REG20      24
38
#define EF_REG21      25
39
#define EF_REG22      26
40
#define EF_REG23      27
41
#define EF_REG24      28
42
#define EF_REG25      29
43
/*
44
 * k0/k1 unsaved
45
 */
46
#define EF_REG28      30
47
#define EF_REG29      31
48
#define EF_REG30      32
49
#define EF_REG31      33
50
 
51
/*
52
 * Saved special registers
53
 */
54
#define EF_LO         34
55
#define EF_HI         35
56
 
57
/*
58
 * saved cp0 registers
59
 */
60
#define EF_CP0_STATUS 36
61
#define EF_CP0_EPC    37
62
#define EF_CP0_CAUSE  38
63
 
64
/*
65
 * Some goodies
66
 */
67
#define EF_INTERRUPT  39
68
#define EF_ORIG_REG2  40
69
 
70
#define EF_SIZE         (41*4)
71
 
72
/*
73
 * Map register number into core file offset.
74
 */
75
#define CORE_REG(reg, ubase) \
76
        (((unsigned long *)((unsigned long)(ubase)))[reg])
77
 
78
#endif /* __ASM_MIPS_REG_H */

powered by: WebSVN 2.1.0

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