Subversion Repositories HelenOS

Rev

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

Rev 206 Rev 216
Line 129... Line 129...
129
        : "=r" (v)
129
        : "=r" (v)
130
    );
130
    );
131
    return v;
131
    return v;
132
}
132
}
133
 
133
 
-
 
134
/** Read CR2
-
 
135
 *
-
 
136
 * Return value in CR2
-
 
137
 *
-
 
138
 * @return Value read.
-
 
139
 */
-
 
140
static inline __u32 read_cr2(void) { __u64 v; __asm__ volatile ("movq %%cr2,%0" : "=r" (v)); return v; }
-
 
141
 
-
 
142
 
134
extern size_t interrupt_handler_size;
143
extern size_t interrupt_handler_size;
135
extern void interrupt_handlers(void);
144
extern void interrupt_handlers(void);
136
 
145
 
137
#endif
146
#endif