This commit is contained in:
rsc 2007-08-14 04:06:02 +00:00
parent 3163085ace
commit 64659055bd

2
x86.h
View file

@ -64,7 +64,7 @@ lidt(struct gatedesc *p, int size)
pd[1] = (uint)p;
pd[2] = (uint)p >> 16;
asm volatile("lidt (%0)" : : "g" (pd));
asm volatile("lidt (%0)" : : "r" (&pd));
}
static __inline void