Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=71351b98b9be6a867aa00276d67716c0728cfff7
Commit:     71351b98b9be6a867aa00276d67716c0728cfff7
Parent:     b015124e562a040f7faf361c72e8f5f457ac6cf5
Author:     H. Peter Anvin <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 23 09:28:42 2007 -0700
Committer:  H. Peter Anvin <[EMAIL PROTECTED]>
CommitDate: Thu Aug 23 13:03:25 2007 -0700

    [x86 setup] Make sure AH=00h when setting a video mode
    
    Passing a u8 into a register doesn't mean gcc will zero-extend it.
    Also, don't depend on thhe register not to change.
    
    Per bug report from Saul Tamari.
    
    Signed-off-by: H. Peter Anvin <[EMAIL PROTECTED]>
---
 arch/i386/boot/video-vga.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/i386/boot/video-vga.c b/arch/i386/boot/video-vga.c
index d660e60..aef02f9 100644
--- a/arch/i386/boot/video-vga.c
+++ b/arch/i386/boot/video-vga.c
@@ -73,9 +73,10 @@ static u8 vga_set_basic_mode(void)
                mode = 3;
 
        /* Set the mode */
+       ax = mode;
        asm volatile(INT10
-                    : : "a" (mode)
-                    : "ebx", "ecx", "edx", "esi", "edi");
+                    : "+a" (ax)
+                    : : "ebx", "ecx", "edx", "esi", "edi");
        do_restore = 1;
        return mode;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to