freebsd-dev/sys
Jean-Sébastien Pédron 19e2ce2d83 vt(4): Colors are indexed against a console palette, not a VGA palette
Rename vt_generate_vga_palette() to vt_generate_cons_palette() and
change it to build a palette where the color index is the same than in
terminal escape codes, not the VGA index. That's what TCHAR_CREATE()
uses and passes to vt(4).

The main differences between both orders are:
    o  Blue and red are swapped (1 <-> 4)
    o  Yellow and cyan are swapped (3 <-> 6)

The problem remained unnoticed, because the RGB bit indexes passed to
vt_generate_vga_palette() were reversed. This inversion was cancelled
by the colors inversions in the generated palette. For instance, red
(0xff0000) and blue (0x0000ff) have bytes in opposite order, but were
swapped in the palette. But after changing the value of blue (see last
paragraph), the modified color was in fact the red one.

This commit includes a fix to creator_vt.c, submitted by Nathan
Whitehorn: fb_cmsize is set to 16. Before this, the generated palette
would be overwritte. This fixes colors on sparc64 with a Creator3D
adapter.

While here, tune the palette to better match console colors and improve
the readability (especially the dark blue).

Submitted by:	nwhitehorn (fix to creator_vt.c)
MFC after:	1 week
2014-08-10 17:04:10 +00:00
..
amd64 Update the text of a KASSERT() to reflect the changes in r269728. 2014-08-09 17:13:02 +00:00
arm Per discussion on arm@, the compiler generates misaligned 2014-08-09 22:51:26 +00:00
boot Quiesce warning about discarding a const qualifier in assignement. 2014-08-08 21:47:47 +00:00
bsm IFp4 @1192291: 2014-04-07 20:44:00 +00:00
cam is_full_id is set to 0 and then not used. remove it. 2014-08-08 11:46:45 +00:00
cddl MFV r269542: 2014-08-05 00:07:21 +00:00
compat All mbuf external free functions never fail, so let them be void. 2014-07-11 13:58:48 +00:00
conf Add the dts include directory to the -I list when doing arm builds. 2014-08-08 01:21:52 +00:00
contrib Work around some rather annoying chip hangs in the AR9331 chip. 2014-08-09 09:12:25 +00:00
crypto Put the aesni_cipher_setup() and aesni_cipher_process() functions into 2014-06-24 06:55:49 +00:00
ddb handle longer commands so that lines don't overflow... people who added 2014-06-02 23:50:19 +00:00
dev vt(4): Colors are indexed against a console palette, not a VGA palette 2014-08-10 17:04:10 +00:00
fs Change the NFS server's printf related to hitting 2014-08-10 01:13:32 +00:00
gdb Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
geom cswitch is unsigned, so don't compare it < 0. Any negative numbers 2014-08-07 21:56:42 +00:00
gnu Revert r269528; this was not the right way to bring these changes in. 2014-08-05 22:38:49 +00:00
i386 Change pmap_enter(9) interface to take flags parameter and superpage 2014-08-08 17:12:03 +00:00
isa Remove vestiges of knowing the ISA bus, which we gave up on around 20 2014-03-19 21:03:04 +00:00
kern Split up sys_ktimer_getoverrun() into a sys_ and a kern_ variant 2014-08-07 16:49:50 +00:00
kgssapi
libkern Fix unwind-info errors in our hand-written arm assembler code. 2014-08-01 18:24:44 +00:00
mips Change pmap_enter(9) interface to take flags parameter and superpage 2014-08-08 17:12:03 +00:00
modules Revert the logic change from r269540. If the opt_inet6.h file is empty 2014-08-05 10:48:53 +00:00
net Merge 'struct ip6protosw' and 'struct protosw' into one. Now we have 2014-08-08 01:57:15 +00:00
net80211 Undo r195846 for now - allow raw frame transmit in monitor mode. 2014-08-10 08:35:42 +00:00
netgraph Remove any stale mbuf tags from packets being injected into a netgraph 2014-07-01 07:54:12 +00:00
netinet Fix string length argument passed to "sysctl_handle_string()" so that 2014-08-10 07:51:55 +00:00
netinet6 Merge 'struct ip6protosw' and 'struct protosw' into one. Now we have 2014-08-08 01:57:15 +00:00
netipsec Merge 'struct ip6protosw' and 'struct protosw' into one. Now we have 2014-08-08 01:57:15 +00:00
netnatm
netpfil Merge 'struct ip6protosw' and 'struct protosw' into one. Now we have 2014-08-08 01:57:15 +00:00
netsmb Remove redundant unlock. 2014-04-17 12:22:08 +00:00
nfs Fix/improve fhe_stats sysctl output. 2014-06-14 12:26:12 +00:00
nfsclient
nfsserver Change NFS readdir() to only ignore cookies preceding the given offset for 2014-07-01 20:00:35 +00:00
nlm Correct a typo in nlm_find_host_by_addr(): the intention of the 2014-03-11 00:25:55 +00:00
ofed Fix OFED startup order: All SYSINIT()'s and modules should be loaded 2014-07-06 14:22:13 +00:00
opencrypto allow the kern.cryptodevallowsoft sysctl to enable symetric/hashes too... 2014-03-11 01:45:46 +00:00
pc98 Compile fixes: 2014-06-28 17:36:18 +00:00
pci Fix various NIC drivers to properly cleanup static DMA resources. 2014-06-11 14:53:58 +00:00
powerpc Change pmap_enter(9) interface to take flags parameter and superpage 2014-08-08 17:12:03 +00:00
rpc Merge the NFSv4.1 server code in projects/nfsv4.1-server over 2014-07-01 20:47:16 +00:00
security Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
sparc64 On sparc64, do not keep mappings for the destroyed sf_bufs. Sparc64 2014-08-10 16:59:39 +00:00
sys Update the comments in exec.h with help from jilles. 2014-08-08 22:30:41 +00:00
teken Fix typo. 2014-02-06 13:28:06 +00:00
tools Call cpp with -P to avoid printing line markings. 2014-06-10 06:24:01 +00:00
ufs The SUJ journal is only prepared to handle full-size block numbers, so we 2014-08-07 16:53:07 +00:00
vm Adapt vm_page_aflag_set(PGA_WRITEABLE) to the locking of 2014-08-09 05:00:34 +00:00
x86 atpic: make sure atpic_init is called after IO APIC initialization 2014-08-07 17:00:50 +00:00
xdr
xen xen: implement event channel PIRQ support 2014-08-04 08:42:29 +00:00
Makefile Remove ia64. 2014-07-07 00:27:09 +00:00