From owner-cvs-src-old@FreeBSD.ORG Tue Nov 3 20:22:49 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E64821065676 for ; Tue, 3 Nov 2009 20:22:49 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B8EA38FC25 for ; Tue, 3 Nov 2009 20:22:49 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nA3KMnbh089994 for ; Tue, 3 Nov 2009 20:22:49 GMT (envelope-from jkim@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nA3KMneh089993 for cvs-src-old@freebsd.org; Tue, 3 Nov 2009 20:22:49 GMT (envelope-from jkim@repoman.freebsd.org) Message-Id: <200911032022.nA3KMneh089993@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jkim@repoman.freebsd.org using -f From: Jung-uk Kim Date: Tue, 3 Nov 2009 20:22:09 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/fb vesa.c src/sys/dev/syscons syscons.c src/sys/sys fbio.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2009 20:22:50 -0000 jkim 2009-11-03 20:22:09 UTC FreeBSD src repository Modified files: sys/dev/fb vesa.c sys/dev/syscons syscons.c sys/sys fbio.h Log: SVN rev 198858 on 2009-11-03 20:22:09Z by jkim Fix VESA color palette corruption: - VBE 3.0 says palette format resets to 6-bit mode when video mode changes. We simply set 8-bit mode when we switch modes if the adapter supports it. - VBE 3.0 also says if the mode is not VGA compatible, we must use VBE function to save/restore palette. Otherwise, VGA function may be used. Thus, reinstate the save/load palette functions only for non-VGA compatible modes regardless of its palette format. - Let vesa(4) set VESA modes even if vga(4) claims to support it. - Reset default palette if VESA pixel mode is set initially. - Fix more style nits. Revision Changes Path 1.15 +36 -59 src/sys/dev/fb/vesa.c 1.477 +3 -0 src/sys/dev/syscons/syscons.c 1.17 +1 -0 src/sys/sys/fbio.h