x86, setup: Store the boot cursor state
Add a field to store the boot cursor state and implement this for VGA on x86. This can then be used to set the default policy for the boot console. Signed-off-by: Matthew Garrett <mjg@redhat.com> LKML-Reference: <1258142222-16092-1-git-send-email-mjg@redhat.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
committed by
H. Peter Anvin
parent
156171c71a
commit
d9b263528e
@@ -27,6 +27,12 @@ static void store_cursor_position(void)
|
||||
|
||||
boot_params.screen_info.orig_x = oreg.dl;
|
||||
boot_params.screen_info.orig_y = oreg.dh;
|
||||
|
||||
if (oreg.ch & 0x20)
|
||||
boot_params.screen_info.flags |= VIDEO_FLAGS_NOCURSOR;
|
||||
|
||||
if ((oreg.ch & 0x1f) > (oreg.cl & 0x1f))
|
||||
boot_params.screen_info.flags |= VIDEO_FLAGS_NOCURSOR;
|
||||
}
|
||||
|
||||
static void store_video_mode(void)
|
||||
|
Reference in New Issue
Block a user