Subversion Repositories HelenOS

Rev

Rev 3790 | Rev 4132 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3790 Rev 4085
Line 40... Line 40...
40
 
40
 
41
#include <interrupt.h>
41
#include <interrupt.h>
42
#include <debug.h>
42
#include <debug.h>
43
#include <console/kconsole.h>
43
#include <console/kconsole.h>
44
#include <console/console.h>
44
#include <console/console.h>
45
#include <console/chardev.h>
-
 
46
#include <console/cmd.h>
45
#include <console/cmd.h>
47
#include <panic.h>
46
#include <panic.h>
48
#include <print.h>
47
#include <print.h>
49
#include <symtab.h>
48
#include <symtab.h>
50
 
49
 
Line 66... Line 65...
66
    ASSERT(n < IVT_ITEMS);
65
    ASSERT(n < IVT_ITEMS);
67
   
66
   
68
    iroutine old;
67
    iroutine old;
69
   
68
   
70
    spinlock_lock(&exctbl_lock);
69
    spinlock_lock(&exctbl_lock);
71
 
70
   
72
    old = exc_table[n].f;
71
    old = exc_table[n].f;
73
    exc_table[n].f = f;
72
    exc_table[n].f = f;
74
    exc_table[n].name = name;
73
    exc_table[n].name = name;
75
 
74
   
76
    spinlock_unlock(&exctbl_lock); 
75
    spinlock_unlock(&exctbl_lock);
77
 
76
   
78
    return old;
77
    return old;
79
}
78
}
80
 
79
 
81
/** Dispatch exception according to exception table
80
/** Dispatch exception according to exception table
82
 *
81
 *
Line 146... Line 145...
146
#endif
145
#endif
147
       
146
       
148
        if (((i + 1) % 20) == 0) {
147
        if (((i + 1) % 20) == 0) {
149
            printf(" -- Press any key to continue -- ");
148
            printf(" -- Press any key to continue -- ");
150
            spinlock_unlock(&exctbl_lock);
149
            spinlock_unlock(&exctbl_lock);
151
            getc(stdin);
150
            _getc(stdin);
152
            spinlock_lock(&exctbl_lock);
151
            spinlock_lock(&exctbl_lock);
153
            printf("\n");
152
            printf("\n");
154
        }
153
        }
155
    }
154
    }
156
   
155