Subversion Repositories HelenOS

Rev

Rev 238 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
212 vana 1
#include <cpu.h>
2
#include <print.h>
3
#include <panic.h>
4
 
5
extern int IVT;
6
 
7
 
8
 
9
 
10
void cpu_arch_init(void)
11
{
12
 
13
 
14
 
15
    int *p=&IVT;
16
 
17
 
18
    __asm__ (
19
        "mov r15 = %0;;"
20
        "mov cr2 = r15;;"
21
        :
22
        : "r" (p)
23
        : "r15"
24
    );
25
 
26
}
27
 
28
 
29
void gugux_pokus(void);
30
void gugux_pokus(void)
31
{
32
    panic("\n\nGUGUX Exception\n\n");
33
}
34
 
35
 
36