]> Devi Nivas Git - cs3210-lab1.git/commitdiff
omit needless ampersands
authorrsc <rsc>
Fri, 24 Aug 2007 00:02:03 +0000 (00:02 +0000)
committerrsc <rsc>
Fri, 24 Aug 2007 00:02:03 +0000 (00:02 +0000)
x86.h

diff --git a/x86.h b/x86.h
index f892ad2ea441cebe14f9e8a2e47e48d893ad1636..2780cc38f2498092ae217bb538095afcf2f99210 100644 (file)
--- 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)" : : "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