]> git.neil.brown.name Git - history.git/commit
[PATCH] fbcon unimap fix
authorAntonino Daplas <adaplas@hotpop.com>
Tue, 19 Oct 2004 01:08:05 +0000 (18:08 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 01:08:05 +0000 (18:08 -0700)
commit7fa82794b53dfe5eaf0c90d7c9136865064535a3
treeea04ddea793ea7c00359f654487f6f42cdfbe9a8
parentb05647a72141355041723b9efe0720499d7511cc
[PATCH] fbcon unimap fix

fbcon doesn't set a unimap at boot time, so special characters come out
wrongly.

This is the code sequence in take_over_console().

newcon->startup()
oldcon->deinit()
newcon->init()

The previous console driver (ie, vgacon), via its deinit method, may release
the unimap allocated by fbcon in fbcon_startup. This is the reason why
calling con_set_default_unimap() in fbcon_init() works, but not in
fbcon_startup().

Check if the default display has an allocated unimap, and if it has none,
call con_set_default_unimap().  And if the target display has no allocated
unimap, then call con_copy_unimap(), where the source unimap is from the
default display.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/console/fbcon.c