Skip to content

Commit

Permalink
[x86 setup] EDD: add missing =m constraint
Browse files Browse the repository at this point in the history
Add a missing =m constraint to the EDD-probing code, that could have
caused improper dead-code elimination.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
H. Peter Anvin committed Aug 2, 2007
1 parent 59acc08 commit 463c9a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/i386/boot/edd.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ static int get_edd_info(u8 devno, struct edd_info *ei)
ax = 0x4800;
dx = devno;
asm("pushfl; int $0x13; popfl"
: "+a" (ax), "+d" (dx)
: "+a" (ax), "+d" (dx), "=m" (ei->params)
: "S" (&ei->params)
: "ebx", "ecx", "edi");

Expand Down

0 comments on commit 463c9a9

Please sign in to comment.