omit needless ampersands
This commit is contained in:
parent
649bc99fe4
commit
2aae720537
1 changed files with 2 additions and 2 deletions
4
x86.h
4
x86.h
|
@ -50,7 +50,7 @@ lgdt(struct segdesc *p, int size)
|
||||||
pd[1] = (uint)p;
|
pd[1] = (uint)p;
|
||||||
pd[2] = (uint)p >> 16;
|
pd[2] = (uint)p >> 16;
|
||||||
|
|
||||||
asm volatile("lgdt (%0)" : : "r" (&pd));
|
asm volatile("lgdt (%0)" : : "r" (pd));
|
||||||
}
|
}
|
||||||
|
|
||||||
struct gatedesc;
|
struct gatedesc;
|
||||||
|
@ -64,7 +64,7 @@ lidt(struct gatedesc *p, int size)
|
||||||
pd[1] = (uint)p;
|
pd[1] = (uint)p;
|
||||||
pd[2] = (uint)p >> 16;
|
pd[2] = (uint)p >> 16;
|
||||||
|
|
||||||
asm volatile("lidt (%0)" : : "r" (&pd));
|
asm volatile("lidt (%0)" : : "r" (pd));
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline void
|
static __inline void
|
||||||
|
|
Loading…
Reference in a new issue