From 64659055bd8ed3717a691d0311666d94195aebee Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 14 Aug 2007 04:06:02 +0000 Subject: [PATCH] ditto --- x86.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86.h b/x86.h index 4774e75..7617322 100644 --- a/x86.h +++ b/x86.h @@ -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