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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [common/] [start.h] - Blame information for rev 59

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

Line No. Rev Author Line
1 59 hellwig
/*
2
 * start.h -- ECO32 ROM monitor startup and support routines
3
 */
4
 
5
 
6
#ifndef _START_H_
7
#define _START_H_
8
 
9
 
10
typedef struct {
11
  Word reg[32];                 /* general purpose registers */
12
  Word psw;                     /* PSW */
13
  Word tlbIndex;                /* TLB index register */
14
  Word tlbHi;                   /* TLB EntryHi register */
15
  Word tlbLo;                   /* TLB EntryLo register */
16
} UserContext;
17
 
18
typedef struct {
19
  Word r31;                     /* return address */
20
  Word r29;                     /* stack pointer */
21
  Word r16;                     /* local variable */
22
  Word r17;                     /* local variable */
23
  Word r18;                     /* local variable */
24
  Word r19;                     /* local variable */
25
  Word r20;                     /* local variable */
26
  Word r21;                     /* local variable */
27
  Word r22;                     /* local variable */
28
  Word r23;                     /* local variable */
29
} MonitorState;
30
 
31
 
32
int cinchk(void);
33
int cin(void);
34
int coutchk(void);
35
void cout(char c);
36
 
37
int sinchk(void);
38
int sin(void);
39
int soutchk(void);
40
void sout(char c);
41
 
42
int dskcap(int dskno);
43
int dskio(int dskno, char cmd, int sct, Word addr, int nscts);
44
 
45
void setISR(Word ptr);
46
void setUMSR(Word ptr);
47
extern Word isrPtr;
48
extern Word umsrPtr;
49
 
50
Word getTLB_HI(int index);
51
Word getTLB_LO(int index);
52
void setTLB(int index, Word entryHi, Word entryLo);
53
 
54
Bool saveState(MonitorState *msp);
55
 
56
extern MonitorState *monitorReturn;
57
extern UserContext userContext;
58
 
59
void resume(void);
60
 
61
 
62
#endif /* _START_H_ */

powered by: WebSVN 2.1.0

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