Deleted Added
full compact
vidconsole.c (40705) vidconsole.c (40775)
1/*
2 * Copyright (c) 1998 Michael Smith (msmith@freebsd.org)
3 * Copyright (c) 1997 Kazutaka YOKOTA (yokota@zodiac.mech.utsunomiya-u.ac.jp)
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 12 unchanged lines hidden (view full) ---

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * From Id: probe_keyboard.c,v 1.13 1997/06/09 05:10:55 bde Exp
28 *
1/*
2 * Copyright (c) 1998 Michael Smith (msmith@freebsd.org)
3 * Copyright (c) 1997 Kazutaka YOKOTA (yokota@zodiac.mech.utsunomiya-u.ac.jp)
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 12 unchanged lines hidden (view full) ---

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * From Id: probe_keyboard.c,v 1.13 1997/06/09 05:10:55 bde Exp
28 *
29 * $Id: vidconsole.c,v 1.6 1998/10/11 10:07:52 peter Exp $
29 * $Id: vidconsole.c,v 1.7 1998/10/28 19:24:15 msmith Exp $
30 */
31
32#include <stand.h>
33#include <bootstrap.h>
34#include <btxv86.h>
35#include <machine/psl.h>
36#include "libi386.h"
37

--- 49 unchanged lines hidden (view full) ---

87 for(i = 0; i < 10 && vidc_ischar(); i++)
88 (void)vidc_getchar();
89 return(0); /* XXX reinit? */
90}
91
92static void
93vidc_putchar(int c)
94{
30 */
31
32#include <stand.h>
33#include <bootstrap.h>
34#include <btxv86.h>
35#include <machine/psl.h>
36#include "libi386.h"
37

--- 49 unchanged lines hidden (view full) ---

87 for(i = 0; i < 10 && vidc_ischar(); i++)
88 (void)vidc_getchar();
89 return(0); /* XXX reinit? */
90}
91
92static void
93vidc_putchar(int c)
94{
95 v86.ctl = 0;
96 v86.addr = 0x10;
97 v86.eax = 0xe00 | c;
98 v86.ebx = 0x7;
99 v86int();
95 int i;
96
97 if (c == '\t') {
98 /* lame tab expansion */
99 for (i = 0; i < 8; i++)
100 vidc_putchar(' ');
101 } else {
102 v86.ctl = 0;
103 v86.addr = 0x10;
104 v86.eax = 0xe00 | c;
105 v86.ebx = 0x7;
106 v86int();
107 }
100}
101
102static int
103vidc_getchar(void)
104{
105 if (vidc_ischar()) {
106 v86.ctl = 0;
107 v86.addr = 0x16;

--- 129 unchanged lines hidden ---
108}
109
110static int
111vidc_getchar(void)
112{
113 if (vidc_ischar()) {
114 v86.ctl = 0;
115 v86.addr = 0x16;

--- 129 unchanged lines hidden ---