summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/pcvt/pcvt_hdr.h
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-08-10 22:14:36 +0000
committerjoerg <joerg@FreeBSD.org>1996-08-10 22:14:36 +0000
commitb0b6f5d7b9be67f05cb8414a19ad952f7ff1b4e5 (patch)
treef5a4d22a74413612b69d8f8087ed8b58b142eef9 /sys/i386/isa/pcvt/pcvt_hdr.h
parentc1fd4cb7887898290a1d9bb895648f3889097aac (diff)
downloadFreeBSD-src-b0b6f5d7b9be67f05cb8414a19ad952f7ff1b4e5.zip
FreeBSD-src-b0b6f5d7b9be67f05cb8414a19ad952f7ff1b4e5.tar.gz
Fix many long-standing bugs and problems with pcvt, namely:
. make pccncheck() work even when interrupts are disabled, so the ``Press a key on the console...'' procedure will work, . make kernel colors #ifndef, so they can be overridden from the config file, . use shutdown_nice() instead of cpu_reset() if Ctrl-Alt-Del is enabled, . allow pccngetc() to return more than a single character, so the arrow keys will work (and thus visual UserConfig!), . fix a warning. This closes all know PRs related to pcvt, in particular #845, #1236, and #1265. PR #991 is a duplicate for 845, and PR #1283 has already been fixed earlier in rev 1.11 of pcvt_conf.h. Submitted by: Ulf Kieber (kieber@sax.de), for the kernel color fix
Diffstat (limited to 'sys/i386/isa/pcvt/pcvt_hdr.h')
-rw-r--r--sys/i386/isa/pcvt/pcvt_hdr.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_hdr.h b/sys/i386/isa/pcvt/pcvt_hdr.h
index 8d9e6c7..2822b05 100644
--- a/sys/i386/isa/pcvt/pcvt_hdr.h
+++ b/sys/i386/isa/pcvt/pcvt_hdr.h
@@ -1396,12 +1396,12 @@ static __inline void vt_selattr(struct video_state *svsp)
/* 0x84 to produce keyboard controller */
/* access delays */
#define PCVT_KBD_DELAY() \
- { u_char x = inb(0x84); } \
- { u_char x = inb(0x84); } \
- { u_char x = inb(0x84); } \
- { u_char x = inb(0x84); } \
- { u_char x = inb(0x84); } \
- { u_char x = inb(0x84); }
+ { (void)inb(0x84); } \
+ { (void)inb(0x84); } \
+ { (void)inb(0x84); } \
+ { (void)inb(0x84); } \
+ { (void)inb(0x84); } \
+ { (void)inb(0x84); }
#else /* PCVT_PORTIO_DELAY */
/* use system supplied delay function for */
OpenPOWER on IntegriCloud