-# $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"
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
-/* $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
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
-# $OpenBSD: Makefile,v 1.3 2014/07/12 21:54:58 jasper Exp $
+# $OpenBSD: Makefile,v 1.4 2014/07/12 23:34:54 jasper Exp $
.include "${.CURDIR}/../Makefile.inc"
CPPFLAGS+=-DHEAP_LIMIT=${HEAP_LIMIT} ${DEBUGFLAGS} -DNO_NET
CPPFLAGS+=-I${S}/stand/boot
-CFLAGS+=${SACFLAGS} -D__INTERNAL_LIBSA_CREAD -DCOMPAT_UFS
+CFLAGS+=${SACFLAGS} -D__INTERNAL_LIBSA_CREAD -DCOMPAT_UFS -DCONSPEED=9600
-/* $OpenBSD: itecons.c,v 1.2 2008/01/23 16:37:56 jsing Exp $ */
+/* $OpenBSD: itecons.c,v 1.3 2014/07/12 23:34:54 jasper Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
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
-# $OpenBSD: Makefile.inc,v 1.3 2012/11/04 16:30:44 matthieu Exp $
+# $OpenBSD: Makefile.inc,v 1.4 2014/07/12 23:34:54 jasper Exp $
NOMAN=
S= ${.CURDIR}/../../../..
BOOTDIR= ${S}/arch/loongson/stand/boot
-CPPFLAGS+= ${SAABI} -mno-abicalls -D_NO_ABICALLS \
+CPPFLAGS+= ${SAABI} -mno-abicalls -D_NO_ABICALLS -DCONSPEED=9600 \
-nostdinc -D__loongson__ \
-I${S} -I${S}/lib/libsa \
-I${.OBJDIR} -I${BOOTDIR}
-/* $OpenBSD: machdep.c,v 1.6 2014/07/12 21:54:58 jasper Exp $ */
+/* $OpenBSD: machdep.c,v 1.7 2014/07/12 23:34:54 jasper Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
int
cnspeed(dev_t dev, int sp)
{
- return 9600;
+ return CONSPEED;
}
int pch_pos;
-/* $OpenBSD: machdep.c,v 1.4 2014/07/12 21:54:58 jasper Exp $ */
+/* $OpenBSD: machdep.c,v 1.5 2014/07/12 23:34:54 jasper Exp $ */
/*
* Copyright (c) 2009, 2010 Miodrag Vallat.
- * Copyright (c) 2013,2014 Jasper Lievisse Adriaanse <jasper@openbsd.org>
+ * Copyright (c) 2013, 2014 Jasper Lievisse Adriaanse <jasper@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
int
cnspeed(dev_t dev, int s)
{
- return (CONSPEED);
+ return CONSPEED;
}
int pch_pos;