Subversion Repositories HelenOS-historic

Rev

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

Rev 239 Rev 249
Line 12... Line 12...
12
{
12
{
13
 
13
 
14
 
14
 
15
 
15
 
16
    int *p=&IVT;
16
    int *p=&IVT;
17
   
-
 
18
    volatile __u64 hlp,hlp2;
17
    volatile __u64 hlp,hlp2;
19
 
18
 
20
 
19
 
21
    int psr = 0x2000;
20
    int psr = 0x2000;
-
 
21
   
22
 
22
 
23
    __asm__  volatile (
23
    __asm__  volatile (
24
        "mov r15 = %0;;"
24
        "mov cr2 = %0;;\n"
25
        "mov cr2 = r15;;"
25
        "mov psr.l = %1;;\n"
-
 
26
        "srlz.i;"
26
        "mov psr.l = %1;;"
27
        "srlz.d;;"
27
        :
28
        :
28
        : "r" (p), "r" (psr)
29
        : "r" (p), "r" (psr)
29
        : "r15"
-
 
30
    );
30
    );
31
 
31
 
32
 
32
 
33
 
33
 
34
    /*Switch register bank of regs r16 .. r31 to 1 It is automaticly cleared on exception*/
34
    /*Switch register bank of regs r16 .. r31 to 1 It is automaticly cleared on exception*/
35
    __asm__ volatile ("bsw.1;;");            
35
    __asm__ volatile
-
 
36
    (
-
 
37
        "bsw.1;;\n"
-
 
38
    );            
36
   
39
   
37
 
40
 
38
}
41
}
39
 
42
 
40
 
43