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

Subversion Repositories eco32

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

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 84 hellwig
  Word badAddr;                 /* bad address register */
17 59 hellwig
} UserContext;
18
 
19
typedef struct {
20
  Word r31;                     /* return address */
21
  Word r29;                     /* stack pointer */
22
  Word r16;                     /* local variable */
23
  Word r17;                     /* local variable */
24
  Word r18;                     /* local variable */
25
  Word r19;                     /* local variable */
26
  Word r20;                     /* local variable */
27
  Word r21;                     /* local variable */
28
  Word r22;                     /* local variable */
29
  Word r23;                     /* local variable */
30
} MonitorState;
31
 
32
 
33
int cinchk(void);
34
int cin(void);
35
int coutchk(void);
36
void cout(char c);
37
 
38
int sinchk(void);
39
int sin(void);
40
int soutchk(void);
41
void sout(char c);
42
 
43
int dskcap(int dskno);
44
int dskio(int dskno, char cmd, int sct, Word addr, int nscts);
45
 
46
void setISR(Word ptr);
47
void setUMSR(Word ptr);
48
extern Word isrPtr;
49
extern Word umsrPtr;
50
 
51
Word getTLB_HI(int index);
52
Word getTLB_LO(int index);
53
void setTLB(int index, Word entryHi, Word entryLo);
54
 
55
Bool saveState(MonitorState *msp);
56
 
57
extern MonitorState *monitorReturn;
58
extern UserContext userContext;
59
 
60
void resume(void);
61
 
62
 
63
#endif /* _START_H_ */

powered by: WebSVN 2.1.0

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