Subversion Repositories HelenOS

Rev

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

Rev 27 Rev 28
Line 42... Line 42...
42
 
42
 
43
#include <config.h>
43
#include <config.h>
44
 
44
 
45
#include <arch/interrupt.h>
45
#include <arch/interrupt.h>
46
 
46
 
-
 
47
#include <arch/asm.h>
-
 
48
 
-
 
49
void write_dr0(__u32 v)
-
 
50
{
-
 
51
    __asm__("movl %0,%%dr0" : : "r" (v));
-
 
52
}
-
 
53
 
-
 
54
inline __u32 read_dr0(void)
-
 
55
{
-
 
56
    __u32 v;
-
 
57
   
-
 
58
    __asm__("movl %%dr0,%0\n" : "=r" (v));
-
 
59
   
-
 
60
    return v;
-
 
61
}
47
 
62
 
48
void arch_pre_mm_init(void)
63
void arch_pre_mm_init(void)
49
{
64
{
50
    pm_init();
65
    pm_init();
51
 
66