Subversion Repositories HelenOS

Rev

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

Rev 212 Rev 220
Line 27... Line 27...
27
 *
27
 *
28
 */
28
 */
29
 
29
 
30
 
30
 
31
#include <panic.h>
31
#include <panic.h>
-
 
32
#include <arch/types.h>
32
 
33
 
33
 
34
 
34
void general_exception(void);
35
void general_exception(void);
35
void general_exception(void)
36
void general_exception(void)
36
{
37
{
Line 43... Line 44...
43
void break_instruction(void)
44
void break_instruction(void)
44
{
45
{
45
    panic("\nBreak Instruction\n");
46
    panic("\nBreak Instruction\n");
46
}
47
}
47
 
48
 
-
 
49
 
-
 
50
void universal_handler(void);
-
 
51
void universal_handler(void)
-
 
52
{
-
 
53
    __u64 i;
-
 
54
 
-
 
55
    __asm__ (
-
 
56
        "mov  %0 = r12;;"
-
 
57
        : "=r" (i)
-
 
58
        :
-
 
59
        : "r15"
-
 
60
    );
-
 
61
 
-
 
62
    panic("\nException:%Q\n",i);
-
 
63
}
-
 
64
 
-
 
65