URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 14 |
Rev 248 |
/*
|
/*
|
* start.h -- startup and support routines
|
* start.h -- startup and support routines
|
*/
|
*/
|
|
|
|
|
#ifndef _START_H_
|
#ifndef _START_H_
|
#define _START_H_
|
#define _START_H_
|
|
|
|
|
typedef struct {
|
typedef struct {
|
Word ic_reg[32]; /* general purpose registers */
|
Word ic_reg[32]; /* general purpose registers */
|
Word ic_tlbhi; /* TLB EntryHi */
|
Word ic_tlbhi; /* TLB EntryHi */
|
Word ic_psw; /* PSW */
|
Word ic_psw; /* PSW */
|
} InterruptContext;
|
} InterruptContext;
|
|
|
typedef void (*ISR)(int irq, InterruptContext *icp);
|
typedef void (*ISR)(int irq, InterruptContext *icp);
|
|
|
|
|
int cin(void);
|
int cin(void);
|
void cout(char c);
|
void cout(char c);
|
|
|
Word getTLB_HI(int index);
|
Word getTLB_HI(int index);
|
Word getTLB_LO(int index);
|
Word getTLB_LO(int index);
|
void setTLB(int index, Word entryHi, Word entryLo);
|
void setTLB(int index, Word entryHi, Word entryLo);
|
void wrtRndTLB(Word entryHi, Word entryLo);
|
void wrtRndTLB(Word entryHi, Word entryLo);
|
Word probeTLB(Word entryHi);
|
Word probeTLB(Word entryHi);
|
void wait(int n);
|
void wait(int n);
|
void enable(void);
|
void enable(void);
|
void disable(void);
|
void disable(void);
|
Word getMask(void);
|
Word getMask(void);
|
Word setMask(Word mask);
|
Word setMask(Word mask);
|
ISR getISR(int irq);
|
ISR getISR(int irq);
|
ISR setISR(int irq, ISR isr);
|
ISR setISR(int irq, ISR isr);
|
|
|
|
|
#endif /* _START_H_ */
|
#endif /* _START_H_ */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.