Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Kernel Team (http://www.linux-archive.org/ubuntu-kernel-team/)
-   -   Fix framebuffer fonts on non-x86 platforms (http://www.linux-archive.org/ubuntu-kernel-team/65270-fix-framebuffer-fonts-non-x86-platforms.html)

Matthew Garrett 04-06-2008 11:43 PM

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

Tim Gardner 04-07-2008 01:59 PM

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 07:11 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.