- disabled VGA init stuff (should be removed from libsys)
- minor changes to test_exception git-svn-id: http://moon:8086/svn/mips@54 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
+3
-3
@@ -22,13 +22,13 @@ void libsys_init(void)
|
||||
uint32_t volatile *pVGA_ctrl = (uint32_t*)SYS_VGA_CTRL;
|
||||
uint32_t volatile *pITIM_ctrl = (uint32_t*)SYS_ITIM_CTRL;
|
||||
|
||||
Screen_clr();
|
||||
// Screen_clr();
|
||||
|
||||
// Disable timers
|
||||
*pITIM_ctrl = 0;
|
||||
|
||||
// Disable all VGA stuff
|
||||
*pVGA_ctrl = 0;
|
||||
// *pVGA_ctrl = 0;
|
||||
|
||||
// Initialzie syscall support
|
||||
syscalls_init();
|
||||
@@ -40,7 +40,7 @@ void libsys_init(void)
|
||||
dbg_init();
|
||||
|
||||
// flush stdin
|
||||
flush(GetPort(0));
|
||||
// flush(GetPort(0));
|
||||
|
||||
// Do some initializations here
|
||||
|
||||
|
||||
@@ -195,8 +195,8 @@ int main(void)
|
||||
|
||||
while(1)
|
||||
{
|
||||
printf("Welche exception m�chten Sie testen?\n");
|
||||
printf(" 1 : Reserved instruction\n");
|
||||
printf("Welche exception möchten Sie testen?\n");
|
||||
printf(" 1 : Reserved instruction (EPC = 0x40010000)\n");
|
||||
printf(" 2 : Privileged address (BadVAddr = 0x80000000)\n");
|
||||
printf(" 3 : Arithmetic overflow\n");
|
||||
printf(" 4 : Syscall\n");
|
||||
@@ -211,8 +211,10 @@ int main(void)
|
||||
printf("13 : Load error on instruction and Load error on data (BadVAddr = 0x40000003)\n");
|
||||
printf("14 : Load error on data and Load error on instruction (BadVAddr = 0x40000002)\n");
|
||||
|
||||
scanf("%d", &sel);
|
||||
printf("Jetzt kommt die exception (%d)!\n", sel);
|
||||
fflush(stdin);
|
||||
int res = scanf("%d", &sel);
|
||||
|
||||
printf("Jetzt kommt die exception (%d), res = %d!\n", sel, res);
|
||||
|
||||
switch(sel)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user