summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-10-18 03:34:53 +0000
committerache <ache@FreeBSD.org>1994-10-18 03:34:53 +0000
commit5920fcebfe07258bb528304da6e6849f7d456c9a (patch)
treededb7e1ad209b1dedd3b97927957d57853cabd42 /sys/dev
parentc10aa664a37c880548647351b5093c40ffe383f4 (diff)
downloadFreeBSD-src-5920fcebfe07258bb528304da6e6849f7d456c9a.zip
FreeBSD-src-5920fcebfe07258bb528304da6e6849f7d456c9a.tar.gz
Remove color_display, GIO_COLOR now exists
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/syscons/syscons.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 327756d..023ea27 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.67 1994/10/17 21:16:41 phk Exp $
+ * $Id: syscons.c,v 1.68 1994/10/17 22:12:06 sos Exp $
*/
#include "sc.h"
@@ -283,7 +283,6 @@ struct tty pccons[NCONS+1];
u_short *Crtat = (u_short *)MONO_BUF;
void consinit(void) {scinit();}
extern char *video_mode_ptr;
-int color_display = -1;
struct isa_driver scdriver = {
pcprobe, pcattach, "sc", 1
@@ -2059,14 +2058,12 @@ scinit(void)
*/
was = *cp;
*cp = (u_short) 0xA55A;
- if (*cp != 0xA55A) {
+ if (*cp != 0xA55A)
crtc_addr = MONO_BASE;
- color_display = 0;
- } else {
+ else {
*cp = was;
crtc_addr = COLOR_BASE;
Crtat = Crtat + (CGA_BUF-MONO_BUF)/sizeof(u_short);
- color_display = 1;
}
/* Extract cursor location */
OpenPOWER on IntegriCloud