diff --git a/src/libsys/libsys.c b/src/libsys/libsys.c index de2ad87..c045a95 100644 --- a/src/libsys/libsys.c +++ b/src/libsys/libsys.c @@ -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 diff --git a/src/test_exception.c b/src/test_exception.c index c88902a..5634efd 100644 --- a/src/test_exception.c +++ b/src/test_exception.c @@ -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) {