Re: [PATCH] retrieve VBE EDID/DDC info independent of used video mode

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: H. Peter Anvin <hpa@...>
Cc: Daniel Drake <dsd@...>, Zwane Mwaikambo <zwane@...>, Andrew Morton <akpm@...>, Jan Beulich <jbeulich@...>, <linux-kernel@...>, Andi Kleen <ak@...>
Date: Thursday, August 2, 2007 - 6:16 am

H. Peter Anvin wrote:
 
How about this patch?

Tony
---

Subject: video setup: Fix VBE DDC reading

Add memory operand constraint and write-only modifier to the inline
assembly to effect the writing of the EDID block to boot_params.edid_info.

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
---

 arch/i386/boot/video-vesa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/i386/boot/video-vesa.c b/arch/i386/boot/video-vesa.c
index e6aa9eb..f1bc71e 100644
--- a/arch/i386/boot/video-vesa.c
+++ b/arch/i386/boot/video-vesa.c
@@ -268,7 +268,7 @@ #ifdef CONFIG_FIRMWARE_EDID
 	dx = 0;			/* EDID block number */
 	di =(size_t) &boot_params.edid_info; /* (ES:)Pointer to block */
 	asm(INT10
-	    : "+a" (ax), "+b" (bx), "+d" (dx)
+	    : "+a" (ax), "+b" (bx), "+d" (dx), "=m" (boot_params.edid_info)
 	    : "c" (cx), "D" (di)
 	    : "esi");
 #endif /* CONFIG_FIRMWARE_EDID */

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] retrieve VBE EDID/DDC info independent of used v..., Antonino A. Daplas, (Tue Jul 31, 9:04 pm)
Re: [PATCH] retrieve VBE EDID/DDC info independent of used v..., Antonino A. Daplas, (Tue Jul 31, 9:54 pm)
Re: [PATCH] retrieve VBE EDID/DDC info independent of used v..., Antonino A. Daplas, (Wed Aug 1, 11:09 pm)
Re: [PATCH] retrieve VBE EDID/DDC info independent of used v..., Antonino A. Daplas, (Thu Aug 2, 6:16 am)
Re: [PATCH] retrieve VBE EDID/DDC info independent of used v..., Antonino A. Daplas, (Thu Aug 2, 11:33 pm)