diff --git a/x86.h b/x86.h index ab7882a..4774e75 100644 --- a/x86.h +++ b/x86.h @@ -50,7 +50,7 @@ lgdt(struct segdesc *p, int size) pd[1] = (uint)p; pd[2] = (uint)p >> 16; - asm volatile("lgdt (%0)" : : "g" (pd)); + asm volatile("lgdt (%0)" : : "r" (&pd)); } struct gatedesc;