summaryrefslogtreecommitdiff
path: root/x86.h
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-14 04:06:02 +0000
committerrsc <rsc>2007-08-14 04:06:02 +0000
commit64659055bd8ed3717a691d0311666d94195aebee (patch)
tree6b54e476151444268744e8bd072dde30fdd3e35c /x86.h
parent3163085ace9f530bdf6dbc83c62d5e3842728860 (diff)
downloadxv6-labs-64659055bd8ed3717a691d0311666d94195aebee.tar.gz
xv6-labs-64659055bd8ed3717a691d0311666d94195aebee.tar.bz2
xv6-labs-64659055bd8ed3717a691d0311666d94195aebee.zip
ditto
Diffstat (limited to 'x86.h')
-rw-r--r--x86.h2
1 files changed, 1 insertions, 1 deletions
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