summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-12 23:34:55 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-07-12 23:34:55 +0000
commitdfe2efb38358e2ae0f95a6aeaa63ca0ea0b4d831 (patch)
treee5f52cbe9586a3c02135906a65c394d0601e58b1 /sys/arch/hppa
parent1a7656b02ae888b2856dc4dc525107c698e21717 (diff)
unify cnspeed()
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/stand/libsa/Makefile3
-rw-r--r--sys/arch/hppa/stand/libsa/itecons.c8
2 files changed, 5 insertions, 6 deletions
diff --git a/sys/arch/hppa/stand/libsa/Makefile b/sys/arch/hppa/stand/libsa/Makefile
index 7747c256ca8..0c9cdccdf2b 100644
--- a/sys/arch/hppa/stand/libsa/Makefile
+++ b/sys/arch/hppa/stand/libsa/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.17 2014/07/12 21:54:58 jasper Exp $
+# $OpenBSD: Makefile,v 1.18 2014/07/12 23:34:54 jasper Exp $
.include "${.CURDIR}/../Makefile.inc"
@@ -41,3 +41,4 @@ install:
CPPFLAGS+=-DHEAP_LIMIT=${HEAP_LIMIT} ${DEBUGFLAGS} -DNO_NET
CPPFLAGS+=-I${S}/stand/boot
CFLAGS+=${SACFLAGS} -D__INTERNAL_LIBSA_CREAD -DCOMPAT_UFS -fno-pie
+CFLAGS+=-DCONSPEED=9600
diff --git a/sys/arch/hppa/stand/libsa/itecons.c b/sys/arch/hppa/stand/libsa/itecons.c
index 4d11532d79a..408355b0fac 100644
--- a/sys/arch/hppa/stand/libsa/itecons.c
+++ b/sys/arch/hppa/stand/libsa/itecons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: itecons.c,v 1.10 2008/01/23 16:37:56 jsing Exp $ */
+/* $OpenBSD: itecons.c,v 1.11 2014/07/12 23:34:54 jasper Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -69,11 +69,9 @@ char cnbuf[IODC_MINIOSIZ] __attribute__ ((aligned (IODC_MINIOSIZ)));
int kycode[IODC_MAXSIZE/sizeof(int)];
int
-cnspeed(dev, sp)
- dev_t dev;
- int sp;
+cnspeed(dev_t dev, int sp)
{
- return 9600;
+ return CONSPEED;
}
void