summaryrefslogtreecommitdiff
path: root/sys/arch/loongson/stand
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-12 21:54:59 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-12 21:54:59 +0000
commit55a05995977ff661af3b9e512515abc461867ca5 (patch)
treed4bb8dcc9cdf6a4c586530a373c0849e4080678a /sys/arch/loongson/stand
parent131b9116e2e83a04a7aab4b8596774aa49ed6935 (diff)
move getchar() into libsa where applicable
ok miod@
Diffstat (limited to 'sys/arch/loongson/stand')
-rw-r--r--sys/arch/loongson/stand/boot/machdep.c18
-rw-r--r--sys/arch/loongson/stand/libsa/Makefile4
2 files changed, 3 insertions, 19 deletions
diff --git a/sys/arch/loongson/stand/boot/machdep.c b/sys/arch/loongson/stand/boot/machdep.c
index df618a2adae..d1ac2b714ca 100644
--- a/sys/arch/loongson/stand/boot/machdep.c
+++ b/sys/arch/loongson/stand/boot/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.5 2013/09/30 19:27:02 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.6 2014/07/12 21:54:58 jasper Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
@@ -64,22 +64,6 @@ cnspeed(dev_t dev, int sp)
return 9600;
}
-int
-getchar()
-{
- int c = cngetc();
-
- if (c == '\r')
- c = '\n';
-
- if ((c < ' ' && c != '\n') || c == '\177')
- return c;
-
- putchar(c);
-
- return c;
-}
-
int pch_pos;
void
diff --git a/sys/arch/loongson/stand/libsa/Makefile b/sys/arch/loongson/stand/libsa/Makefile
index 0aef0b99ce8..a9ceec78cc9 100644
--- a/sys/arch/loongson/stand/libsa/Makefile
+++ b/sys/arch/loongson/stand/libsa/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2013/01/02 12:29:33 deraadt Exp $
+# $OpenBSD: Makefile,v 1.5 2014/07/12 21:54:58 jasper Exp $
.include "${.CURDIR}/../Makefile.inc"
@@ -16,7 +16,7 @@ CFLAGS+= ${CEXTRAFLAGS} ${SAABI} -nostdinc -mno-abicalls -D_NO_ABICALLS \
-I${.OBJDIR}
# stand routines
-SRCS= alloc.c cons.c ctime.c exit.c getfile.c gets.c globals.c \
+SRCS= alloc.c cons.c ctime.c exit.c getchar.c getfile.c gets.c globals.c \
memcmp.c memcpy.c memset.c printf.c \
snprintf.c strchr.c strcmp.c strerror.c strncmp.c strncpy.c strtol.c