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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [v85x/] [arch/] [v2_0/] [include/] [nec-stub.h] - Blame information for rev 454

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#ifndef CYGONCE_HAL_NEC_STUB_H
2
#define CYGONCE_HAL_NEC_STUB_H
3
//========================================================================
4
//
5
//      nec-stub.h
6
//
7
//      NEC-specific definitions for generic stub
8
//
9
//========================================================================
10
//####ECOSGPLCOPYRIGHTBEGIN####
11
// -------------------------------------------
12
// This file is part of eCos, the Embedded Configurable Operating System.
13
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
14
//
15
// eCos is free software; you can redistribute it and/or modify it under
16
// the terms of the GNU General Public License as published by the Free
17
// Software Foundation; either version 2 or (at your option) any later version.
18
//
19
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
20
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
21
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
22
// for more details.
23
//
24
// You should have received a copy of the GNU General Public License along
25
// with eCos; if not, write to the Free Software Foundation, Inc.,
26
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
27
//
28
// As a special exception, if other files instantiate templates or use macros
29
// or inline functions from this file, or you compile this file and link it
30
// with other works to produce a work based on this file, this file does not
31
// by itself cause the resulting work to be covered by the GNU General Public
32
// License. However the source code for this file must still be made available
33
// in accordance with section (3) of the GNU General Public License.
34
//
35
// This exception does not invalidate any other reasons why a work based on
36
// this file might be covered by the GNU General Public License.
37
//
38
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
39
// at http://sources.redhat.com/ecos/ecos-license/
40
// -------------------------------------------
41
//####ECOSGPLCOPYRIGHTEND####
42
//========================================================================
43
//#####DESCRIPTIONBEGIN####
44
//
45
// Author(s):     Red Hat, nickg
46
// Contributors:  Red Hat, nickg
47
// Date:          1998-06-08
48
// Purpose:       
49
// Description:   NEC-specific definitions for generic stub
50
// Usage:         
51
//
52
//####DESCRIPTIONEND####
53
//
54
//========================================================================
55
 
56
 
57
#ifdef __cplusplus
58
extern "C" {
59
#endif
60
 
61
#define NUMREGS    66
62
#define REGSIZE(X) 4
63
typedef unsigned long target_register_t;
64
 
65
enum regnames {
66
    R0,  R1,  SP,  R3,  R4,  R5,  R6,  R7,
67
    R8,  R9 , R10, R11, R12, R13, R14, R15,
68
    R16, R17, R18, R19, R20, R21, R22, R23,
69
    R24, R25, R26, R27, R28, R29, R30, R31,
70
    EIPC, EIPSW, FEPC, FEPSW, ECR, PSW, SR6, SR7,
71
    SR8,  SR9 , SR10, SR11, SR12, SR13, SR14, SR15,
72
    SR16, SR17, SR18, SR19, SR20, SR21, SR22, SR23,
73
    SR24, SR25, SR26, SR27, SR28, SR29, SR30, SR31,
74
    PC, FP
75
};
76
 
77
typedef enum regnames regnames_t;
78
 
79
/* Given a trap value TRAP, return the corresponding signal. */
80
extern int __computeSignal (unsigned int trap_number);
81
 
82
/* Return the SPARC trap number corresponding to the last-taken trap. */
83
extern int __get_trap_number (void);
84
 
85
/* Return the currently-saved value corresponding to register REG. */
86
extern target_register_t get_register (regnames_t reg);
87
 
88
/* Store VALUE in the register corresponding to WHICH. */
89
extern void put_register (regnames_t which, target_register_t value);
90
 
91
/* Set the currently-saved pc register value to PC. This also updates NPC
92
   as needed. */
93
extern void set_pc (target_register_t pc);
94
 
95
/* Set things up so that the next user resume will execute one instruction.
96
   This may be done by setting breakpoints or setting a single step flag
97
   in the saved user registers, for example. */
98
void __single_step (void);
99
 
100
/* Clear the single-step state. */
101
void __clear_single_step (void);
102
 
103
/* If the breakpoint we hit is in the breakpoint() instruction, return a
104
   non-zero value. */
105
extern int __is_breakpoint_function (void);
106
 
107
/* Skip the current instruction. */
108
extern void __skipinst (void);
109
 
110
extern void __install_breakpoints (void);
111
 
112
extern void __clear_breakpoints (void);
113
 
114
#ifdef __cplusplus
115
} /* extern "C" */
116
#endif
117
 
118
#endif // ifndef CYGONCE_HAL_NEC_STUB_H

powered by: WebSVN 2.1.0

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