From 2aae7205373580cb5ab34731b202af9afa32caf3 Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 24 Aug 2007 00:02:03 +0000 Subject: [PATCH] omit needless ampersands --- x86.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x86.h b/x86.h index f892ad2..2780cc3 100644 --- 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