Subversion Repositories HelenOS

Rev

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

Rev 180 Rev 192
Line 81... Line 81...
81
 *
81
 *
82
 * @return Value read.
82
 * @return Value read.
83
 */
83
 */
84
static inline __u32 read_cr3(void) { __u32 v; __asm__ volatile ("movl %%cr3,%0" : "=r" (v)); return v; }
84
static inline __u32 read_cr3(void) { __u32 v; __asm__ volatile ("movl %%cr3,%0" : "=r" (v)); return v; }
85
 
85
 
86
/** Write DR0
-
 
87
 *
-
 
88
 * Write value to DR0.
-
 
89
 *
-
 
90
 * @param v Value to be written.
-
 
91
 */
-
 
92
static inline void write_dr0(__u32 v) { __asm__ volatile ("movl %0,%%dr0\n" : : "r" (v)); }
-
 
93
 
-
 
94
/** Read DR0
-
 
95
 *
-
 
96
 * Return value in DR0
-
 
97
 *
-
 
98
 * @return Value read.
-
 
99
 */
-
 
100
static inline __u32 read_dr0(void) { __u32 v; __asm__ volatile ("movl %%dr0,%0" : "=r" (v)); return v; }
-
 
101
 
-
 
102
/** Set priority level low
86
/** Set priority level low
103
 *
87
 *
104
 * Enable interrupts and return previous
88
 * Enable interrupts and return previous
105
 * value of EFLAGS.
89
 * value of EFLAGS.
106
 */
90
 */