ditto
This commit is contained in:
parent
3163085ace
commit
64659055bd
1 changed files with 1 additions and 1 deletions
2
x86.h
2
x86.h
|
@ -64,7 +64,7 @@ lidt(struct gatedesc *p, int size)
|
||||||
pd[1] = (uint)p;
|
pd[1] = (uint)p;
|
||||||
pd[2] = (uint)p >> 16;
|
pd[2] = (uint)p >> 16;
|
||||||
|
|
||||||
asm volatile("lidt (%0)" : : "g" (pd));
|
asm volatile("lidt (%0)" : : "r" (&pd));
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline void
|
static __inline void
|
||||||
|
|
Loading…
Reference in a new issue