[x86 setup] Make sure AH=00h when setting a video mode
authorH. Peter Anvin <hpa@zytor.com>
Thu, 23 Aug 2007 16:28:42 +0000 (09:28 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 23 Aug 2007 20:03:25 +0000 (13:03 -0700)
commit71351b98b9be6a867aa00276d67716c0728cfff7
tree9ab25a995c333d21274403ca7302449d51544b26
parentb015124e562a040f7faf361c72e8f5f457ac6cf5
[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 <hpa@zytor.com>
arch/i386/boot/video-vga.c