提交 2aae7205 创建 作者: rsc's avatar rsc

omit needless ampersands

上级 649bc99f
......@@ -50,7 +50,7 @@ lgdt(struct segdesc *p, int size)
pd[1] = (uint)p;
pd[2] = (uint)p >> 16;
asm volatile("lgdt (%0)" : : "r" (&pd));
asm volatile("lgdt (%0)" : : "r" (pd));
}
struct gatedesc;
......@@ -64,7 +64,7 @@ lidt(struct gatedesc *p, int size)
pd[1] = (uint)p;
pd[2] = (uint)p >> 16;
asm volatile("lidt (%0)" : : "r" (&pd));
asm volatile("lidt (%0)" : : "r" (pd));
}
static __inline void
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论