Fix previous in emul.c -- only numbers are operands for cpp comparisons.

Apparently non-numbers logically produce arch-dependent behaviour.
This commit is contained in:
pooka 2010-06-13 15:17:02 +00:00
parent 599c2850cf
commit a2b72aafa2
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.rumpkern,v 1.89 2010/06/10 21:40:42 pooka Exp $
# $NetBSD: Makefile.rumpkern,v 1.90 2010/06/13 15:17:02 pooka Exp $
#
.include "${RUMPTOP}/Makefile.rump"
@ -117,6 +117,10 @@ ARCHDIR= ${RUMPTOP}/librump/rumpkern/arch/${MACHINE_ARCH}
SRCS+= kobj_stubs.c rumpcpu_generic.c
.endif
.if ${MACHINE} == "sun3"
CPPFLAGS+= -Dsun3
.endif
# include libkern source files
KERNDIR=${RUMPTOP}/../lib/libkern
.ifdef RUMPKMOD

View File

@ -1,4 +1,4 @@
/* $NetBSD: emul.c,v 1.140 2010/06/13 11:35:41 pooka Exp $ */
/* $NetBSD: emul.c,v 1.141 2010/06/13 15:17:02 pooka Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.140 2010/06/13 11:35:41 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.141 2010/06/13 15:17:02 pooka Exp $");
#include <sys/param.h>
#include <sys/null.h>
@ -104,7 +104,7 @@ int pgshift = 12;
#endif
/* sun3 is sun3 with broken kernel modules */
#if _MACHINE == sun3
#ifdef sun3
char KERNBASE[1]; /* this is completely random ... */
#endif