xv6

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2aae7205373580cb5ab34731b202af9afa32caf3
parent 649bc99fe4c0eba9431745ac55bd771852d47bf9
Author: rsc <rsc>
Date:   Fri, 24 Aug 2007 00:02:03 +0000

omit needless ampersands

Diffstat:
Mx86.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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