22 #include "descriptor.h"
28 uint32 val[
sizeof (mword) / 2];
31 inline void set (Type type,
unsigned dpl,
unsigned selector, mword offset)
33 val[0] =
static_cast<uint32
>(selector << 16 | (offset & 0xffff));
34 val[1] =
static_cast<uint32
>((offset & 0xffff0000) | 1u << 15 | dpl << 13 | type);
38 static Idt idt[VEC_MAX];
44 static inline void load()
47 asm volatile(
"lidt %0" : :
"m" (d));
Definition: descriptor.h:25
Definition: descriptor.h:70