summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-13 09:26:09 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-13 09:26:09 +0000
commit219fb4bc5d8106b0ba4be12dadb7546e3f82f36f (patch)
tree0585011bd8cb3c7efedd44b8a5c215c3fbfef701 /sys/arch/i386/stand/libsa
parent6cc6e9954a3db49f93dea8de924444001078fe20 (diff)
move putchar() into libsa
"sure" miod@
Diffstat (limited to 'sys/arch/i386/stand/libsa')
-rw-r--r--sys/arch/i386/stand/libsa/dev_i386.c33
1 files changed, 1 insertions, 32 deletions
diff --git a/sys/arch/i386/stand/libsa/dev_i386.c b/sys/arch/i386/stand/libsa/dev_i386.c
index 7ae77e3bdfb..32055dac9a7 100644
--- a/sys/arch/i386/stand/libsa/dev_i386.c
+++ b/sys/arch/i386/stand/libsa/dev_i386.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev_i386.c,v 1.39 2014/07/12 21:54:58 jasper Exp $ */
+/* $OpenBSD: dev_i386.c,v 1.40 2014/07/13 09:26:08 jasper Exp $ */
/*
* Copyright (c) 1996-1999 Michael Shalayeff
@@ -160,37 +160,6 @@ devboot(dev_t bootdev, char *p)
*p = '\0';
}
-int pch_pos = 0;
-
-void
-putchar(int c)
-{
- switch (c) {
- case '\177': /* DEL erases */
- cnputc('\b');
- cnputc(' ');
- case '\b':
- cnputc('\b');
- if (pch_pos)
- pch_pos--;
- break;
- case '\t':
- do {
- cnputc(' ');
- } while (++pch_pos % 8);
- break;
- case '\n':
- case '\r':
- cnputc(c);
- pch_pos=0;
- break;
- default:
- cnputc(c);
- pch_pos++;
- break;
- }
-}
-
char ttyname_buf[8];
char *