From 9cccca53d878b23a68354e926e80221002153d4a Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sat, 26 Jun 1999 12:45:17 +0000 Subject: [PATCH] Make genassym compile - the recent buf locking changes meant that more things from #ifdef KERNEL were needed. --- sys/alpha/alpha/genassym.c | 11 ++--------- sys/alpha/conf/Makefile.alpha | 6 +++--- sys/conf/Makefile.alpha | 6 +++--- sys/powerpc/powerpc/genassym.c | 11 ++--------- 4 files changed, 10 insertions(+), 24 deletions(-) diff --git a/sys/alpha/alpha/genassym.c b/sys/alpha/alpha/genassym.c index 19adb4519670..afa35ddeef24 100644 --- a/sys/alpha/alpha/genassym.c +++ b/sys/alpha/alpha/genassym.c @@ -34,10 +34,11 @@ * SUCH DAMAGE. * * from: @(#)genassym.c 5.11 (Berkeley) 5/10/91 - * $Id: genassym.c,v 1.4 1998/11/15 18:25:15 dfr Exp $ + * $Id: genassym.c,v 1.5 1999/02/28 10:53:28 bde Exp $ */ #include +#include #include #include #include @@ -52,9 +53,7 @@ #include #include #include -#define KERNEL /* XXX avoid user headers */ #include -#undef KERNEL #include #include #include @@ -70,12 +69,6 @@ int printf __P((const char *, ...)); #define P(name, val) \ printf(BIG(val) ? "#define\t%s 0x%qx\n" : "#define\t%s %qd\n", name, val) -/* XXX Danger Will Robinson */ -struct prochd { - struct proc *ph_link; /* Linked list of running processes. */ - struct proc *ph_rlink; -}; - #define OFF(name, type, elem) P(#name, (long long) &((type*)0)->elem) #define CONST2(name, val) P(#name, (long long) val) #define CONST1(name) P(#name, (long long) name) diff --git a/sys/alpha/conf/Makefile.alpha b/sys/alpha/conf/Makefile.alpha index d3ddd73da63d..66e86b5c66e3 100644 --- a/sys/alpha/conf/Makefile.alpha +++ b/sys/alpha/conf/Makefile.alpha @@ -1,7 +1,7 @@ # Makefile.alpha -- with config changes. # Copyright 1990 W. Jolitz # from: @(#)Makefile.alpha 7.1 5/10/91 -# $Id: Makefile.alpha,v 1.24 1999/05/08 20:04:38 peter Exp $ +# $Id: Makefile.alpha,v 1.25 1999/05/10 03:02:22 peter Exp $ # # Makefile for FreeBSD # @@ -179,7 +179,7 @@ assym.s: genassym # Some of the defines that genassym outputs may well depend on the # value of kernel options. genassym.o: ${ALPHA}/alpha/genassym.c Makefile opt_global.h - ${HCC} -c ${COPTS} ${PARAM} -UKERNEL ${ALPHA}/alpha/genassym.c + ${HCC} -c ${COPTS} ${PARAM} ${ALPHA}/alpha/genassym.c genassym: genassym.o ${HCC} -static ${COPTS} ${PARAM} genassym.o -o $@ @@ -236,7 +236,7 @@ ${OBJS}: opt_global.h depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND} rm -f .newdep mkdep -a -f .newdep ${COPTS} ${CFILES} ${SYSTEM_CFILES} - mkdep -a -f .newdep ${COPTS} ${PARAM} -UKERNEL ${ALPHA}/alpha/genassym.c + mkdep -a -f .newdep ${COPTS} ${PARAM} ${ALPHA}/alpha/genassym.c MKDEP_CPP="${CC} -E -x assembler-with-cpp" ; export MKDEP_CPP ; \ mkdep -a -f .newdep -DLOCORE ${COPTS} ${SFILES} ${SYSTEM_SFILES} rm -f .depend diff --git a/sys/conf/Makefile.alpha b/sys/conf/Makefile.alpha index d3ddd73da63d..66e86b5c66e3 100644 --- a/sys/conf/Makefile.alpha +++ b/sys/conf/Makefile.alpha @@ -1,7 +1,7 @@ # Makefile.alpha -- with config changes. # Copyright 1990 W. Jolitz # from: @(#)Makefile.alpha 7.1 5/10/91 -# $Id: Makefile.alpha,v 1.24 1999/05/08 20:04:38 peter Exp $ +# $Id: Makefile.alpha,v 1.25 1999/05/10 03:02:22 peter Exp $ # # Makefile for FreeBSD # @@ -179,7 +179,7 @@ assym.s: genassym # Some of the defines that genassym outputs may well depend on the # value of kernel options. genassym.o: ${ALPHA}/alpha/genassym.c Makefile opt_global.h - ${HCC} -c ${COPTS} ${PARAM} -UKERNEL ${ALPHA}/alpha/genassym.c + ${HCC} -c ${COPTS} ${PARAM} ${ALPHA}/alpha/genassym.c genassym: genassym.o ${HCC} -static ${COPTS} ${PARAM} genassym.o -o $@ @@ -236,7 +236,7 @@ ${OBJS}: opt_global.h depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND} rm -f .newdep mkdep -a -f .newdep ${COPTS} ${CFILES} ${SYSTEM_CFILES} - mkdep -a -f .newdep ${COPTS} ${PARAM} -UKERNEL ${ALPHA}/alpha/genassym.c + mkdep -a -f .newdep ${COPTS} ${PARAM} ${ALPHA}/alpha/genassym.c MKDEP_CPP="${CC} -E -x assembler-with-cpp" ; export MKDEP_CPP ; \ mkdep -a -f .newdep -DLOCORE ${COPTS} ${SFILES} ${SYSTEM_SFILES} rm -f .depend diff --git a/sys/powerpc/powerpc/genassym.c b/sys/powerpc/powerpc/genassym.c index 19adb4519670..afa35ddeef24 100644 --- a/sys/powerpc/powerpc/genassym.c +++ b/sys/powerpc/powerpc/genassym.c @@ -34,10 +34,11 @@ * SUCH DAMAGE. * * from: @(#)genassym.c 5.11 (Berkeley) 5/10/91 - * $Id: genassym.c,v 1.4 1998/11/15 18:25:15 dfr Exp $ + * $Id: genassym.c,v 1.5 1999/02/28 10:53:28 bde Exp $ */ #include +#include #include #include #include @@ -52,9 +53,7 @@ #include #include #include -#define KERNEL /* XXX avoid user headers */ #include -#undef KERNEL #include #include #include @@ -70,12 +69,6 @@ int printf __P((const char *, ...)); #define P(name, val) \ printf(BIG(val) ? "#define\t%s 0x%qx\n" : "#define\t%s %qd\n", name, val) -/* XXX Danger Will Robinson */ -struct prochd { - struct proc *ph_link; /* Linked list of running processes. */ - struct proc *ph_rlink; -}; - #define OFF(name, type, elem) P(#name, (long long) &((type*)0)->elem) #define CONST2(name, val) P(#name, (long long) val) #define CONST1(name) P(#name, (long long) name)