/*
|
/*
|
* 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 reg[32]; /* general purpose registers */
|
Word reg[32]; /* general purpose registers */
|
Word psw; /* PSW */
|
Word psw; /* PSW */
|
Word tlbIndex; /* TLB index register */
|
Word tlbIndex; /* TLB index register */
|
Word tlbHi; /* TLB EntryHi register */
|
Word tlbHi; /* TLB EntryHi register */
|
Word tlbLo; /* TLB EntryLo register */
|
Word tlbLo; /* TLB EntryLo register */
|
|
Word badAddr; /* bad address register */
|
} InterruptContext;
|
} InterruptContext;
|
|
|
|
|
int cin(void);
|
int cin(void);
|
void cout(char c);
|
void cout(char c);
|
|
|
void xtest1(InterruptContext *icp);
|
void xtest1(InterruptContext *icp);
|
extern Word xtest1x;
|
extern Word xtest1x;
|
void xtest2(InterruptContext *icp);
|
void xtest2(InterruptContext *icp);
|
extern Word xtest2x;
|
extern Word xtest2x;
|
void xtest3(InterruptContext *icp);
|
void xtest3(InterruptContext *icp);
|
extern Word xtest3x;
|
extern Word xtest3x;
|
void xtest4(InterruptContext *icp);
|
void xtest4(InterruptContext *icp);
|
extern Word xtest4x;
|
extern Word xtest4x;
|
void xtest5(InterruptContext *icp);
|
void xtest5(InterruptContext *icp);
|
extern Word xtest5x;
|
extern Word xtest5x;
|
void xtest6(InterruptContext *icp);
|
void xtest6(InterruptContext *icp);
|
extern Word xtest6x;
|
extern Word xtest6x;
|
void xtest7(InterruptContext *icp);
|
void xtest7(InterruptContext *icp);
|
extern Word xtest7x;
|
extern Word xtest7x;
|
void xtest8(InterruptContext *icp);
|
void xtest8(InterruptContext *icp);
|
extern Word xtest8x;
|
extern Word xtest8x;
|
void xtest9(InterruptContext *icp);
|
void xtest9(InterruptContext *icp);
|
extern Word xtest9x;
|
extern Word xtest9x;
|
void xtest10(InterruptContext *icp);
|
void xtest10(InterruptContext *icp);
|
extern Word xtest10x;
|
extern Word xtest10x;
|
void xtest11(InterruptContext *icp);
|
void xtest11(InterruptContext *icp);
|
extern Word xtest11x;
|
extern Word xtest11x;
|
void xtest12(InterruptContext *icp);
|
void xtest12(InterruptContext *icp);
|
extern Word xtest12x;
|
extern Word xtest12x;
|
void xtest13(InterruptContext *icp);
|
void xtest13(InterruptContext *icp);
|
extern Word xtest13x;
|
extern Word xtest13x;
|
void xtest14(InterruptContext *icp);
|
void xtest14(InterruptContext *icp);
|
extern Word xtest14x;
|
extern Word xtest14x;
|
void xtest15(InterruptContext *icp);
|
void xtest15(InterruptContext *icp);
|
extern Word xtest15x;
|
extern Word xtest15x;
|
void xtest16(InterruptContext *icp);
|
void xtest16(InterruptContext *icp);
|
extern Word xtest16x;
|
extern Word xtest16x;
|
void xtest17(InterruptContext *icp);
|
void xtest17(InterruptContext *icp);
|
extern Word xtest17x;
|
extern Word xtest17x;
|
void xtest18(InterruptContext *icp);
|
void xtest18(InterruptContext *icp);
|
extern Word xtest18x;
|
extern Word xtest18x;
|
void xtest19(InterruptContext *icp);
|
void xtest19(InterruptContext *icp);
|
extern Word xtest19x;
|
extern Word xtest19x;
|
void xtest20(InterruptContext *icp);
|
void xtest20(InterruptContext *icp);
|
extern Word xtest20x;
|
extern Word xtest20x;
|
void xtest21(InterruptContext *icp);
|
void xtest21(InterruptContext *icp);
|
extern Word xtest21x;
|
extern Word xtest21x;
|
void xtest22(InterruptContext *icp);
|
void xtest22(InterruptContext *icp);
|
extern Word xtest22x;
|
extern Word xtest22x;
|
void xtest23(InterruptContext *icp);
|
void xtest23(InterruptContext *icp);
|
extern Word xtest23x;
|
extern Word xtest23x;
|
void xtest24(InterruptContext *icp);
|
void xtest24(InterruptContext *icp);
|
extern Word xtest24x;
|
extern Word xtest24x;
|
void xtest25(InterruptContext *icp);
|
void xtest25(InterruptContext *icp);
|
extern Word xtest25x;
|
extern Word xtest25x;
|
void xtest26(InterruptContext *icp);
|
void xtest26(InterruptContext *icp);
|
extern Word xtest26x;
|
extern Word xtest26x;
|
void xtest27(InterruptContext *icp);
|
void xtest27(InterruptContext *icp);
|
extern Word xtest27x;
|
extern Word xtest27x;
|
void xtest28(InterruptContext *icp);
|
void xtest28(InterruptContext *icp);
|
extern Word xtest28x;
|
extern Word xtest28x;
|
void xtest29(InterruptContext *icp);
|
void xtest29(InterruptContext *icp);
|
extern Word xtest29x;
|
extern Word xtest29x;
|
void xtest30(InterruptContext *icp);
|
void xtest30(InterruptContext *icp);
|
extern Word xtest30x;
|
extern Word xtest30x;
|
void xtest31(InterruptContext *icp);
|
void xtest31(InterruptContext *icp);
|
extern Word xtest31x;
|
extern Word xtest31x;
|
void xtest32(InterruptContext *icp);
|
void xtest32(InterruptContext *icp);
|
extern Word xtest32x;
|
extern Word xtest32x;
|
void xtest33(InterruptContext *icp);
|
void xtest33(InterruptContext *icp);
|
extern Word xtest33x;
|
extern Word xtest33x;
|
void xtest34(InterruptContext *icp);
|
void xtest34(InterruptContext *icp);
|
extern Word xtest34x;
|
extern Word xtest34x;
|
void xtest35(InterruptContext *icp);
|
void xtest35(InterruptContext *icp);
|
extern Word xtest35x;
|
extern Word xtest35x;
|
void xtest36(InterruptContext *icp);
|
void xtest36(InterruptContext *icp);
|
extern Word xtest36x;
|
extern Word xtest36x;
|
void xtest37(InterruptContext *icp);
|
void xtest37(InterruptContext *icp);
|
extern Word xtest37x;
|
extern Word xtest37x;
|
|
|
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);
|
|
|
|
|
#endif /* _START_H_ */
|
#endif /* _START_H_ */
|
|
|