Fix framebuffer fonts on non-x86 platforms
Console fonts are broken on all architectures that don't support VGA
framebuffers right now. Please apply this fixup. Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org> diff --git a/drivers/char/vt_ioctl.c b/drivers/char/vt_ioctl.c index 85f4f8a..316fefe 100644 --- a/drivers/char/vt_ioctl.c +++ b/drivers/char/vt_ioctl.c @@ -1179,10 +1179,8 @@ static void complete_change_console(struct vc_data *vc) */ old_vc_mode = oldvc->vc_mode; - if (old_vc_mode == KD_TEXT && #if defined(CONFIG_VGA_CONSOLE) - (oldvc->vc_sw == &vga_con) && -#endif + if (old_vc_mode == KD_TEXT && oldvc->vc_sw == &vga_con && oldvc->vc_sw->con_font_get) { if (!oldvc->vc_font.data) oldvc->vc_font.data = kmalloc(max_font_size, @@ -1191,13 +1189,11 @@ static void complete_change_console(struct vc_data *vc) oldvc->vc_sw->con_font_get(oldvc, &oldvc->vc_font); unlock_kernel(); } - +#endif switch_screen(vc); - if (vc->vc_mode == KD_TEXT && #if defined(CONFIG_VGA_CONSOLE) - (vc->vc_sw == &vga_con) && -#endif + if (vc->vc_mode == KD_TEXT && vc->vc_sw == &vga_con && vc->vc_sw->con_font_set) { if (vc->vc_font.data) { lock_kernel(); @@ -1205,7 +1201,7 @@ static void complete_change_console(struct vc_data *vc) unlock_kernel(); } } - +#endif /* * This can't appear below a successful kill_pid(). If it did, * then the *blank_screen operation could occur while X, having -- Matthew Garrett | mjg59@srcf.ucam.org -- kernel-team mailing list kernel-team@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/kernel-team |
Fix framebuffer fonts on non-x86 platforms
Matthew Garrett wrote:
> Console fonts are broken on all architectures that don't support VGA > framebuffers right now. Please apply this fixup. > > Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org> Applied. This looks better then the fix I implemented. -- Tim Gardner tim.gardner@ubuntu.com -- kernel-team mailing list kernel-team@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/kernel-team |
| All times are GMT. The time now is 03:52 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.