1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00
freebsd/sys/dev/syscons
Robert Drehmel 47e40520dd Do not try to work around ``poor (un)sign extension code''
creation by GCC-2.6.3.  Casting pointers to unsigned char
to volatile pointers to unsigned char seemed to produce
better results on the ia32 architecture with old versions
of GCC.
The current FreeBSD system compiler GCC-3.2.1 emits
better sign extension code for non-volatile variables:

volatile char c;
int i = c;

is compiled to:
...
movb	-1(%ebp), %al
movbsl	%al, %eax
movl	%eax, -8(%ebp)
...

char c;
int i = c;

is compiled to:
...
movbsl	-1(%ebp), %eax
movl	%eax, -8(%ebp)
...

The same holds for zero-extension of dereferenced pointers
to volatile unsigned char.
When compiled on alpha or sparc64, the code produced for the
two examples above does not differ.
2002-10-20 22:50:13 +00:00
..
apm
blank
daemon
dragon
fade
fire
green
logo
rain
snake
star
warp
scgfbrndr.c
schistory.c de-count schistory.c. The handling of NSC was rather bogus here and was 2002-08-19 23:56:01 +00:00
scmouse.c Use machine/limits.h rather than userland limits.h (which may come from 2002-08-22 20:44:17 +00:00
scterm-dumb.c
scterm-sc.c
scterm.c
sctermvar.h Do not try to work around ``poor (un)sign extension code'' 2002-10-20 22:50:13 +00:00
scvesactl.c
scvgarndr.c
scvidctl.c Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
scvtb.c Don't use "NULL" when "0" is really meant. 2002-08-21 23:39:52 +00:00
syscons.c Make kqueue(2) work for virtual terminals. 2002-10-17 05:48:56 +00:00
syscons.h Add a VT_LOCKSWITCH ioctl that disallows vty switching. Something 2002-07-10 03:29:38 +00:00
sysmouse.c