From cd40726ae9ee9b21bcea8c6da5459239431c737c Mon Sep 17 00:00:00 2001 From: kstailey Date: Fri, 14 Feb 1997 21:53:18 +0000 Subject: [PATCH] add SPL#, back out Makefile.sun3 change --- sys/arch/sun3/conf/Makefile.sun3 | 6 ++---- sys/arch/sun3/sun3/genassym.c | 10 +++++++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/sys/arch/sun3/conf/Makefile.sun3 b/sys/arch/sun3/conf/Makefile.sun3 index 60210a10945..807c5b8423f 100644 --- a/sys/arch/sun3/conf/Makefile.sun3 +++ b/sys/arch/sun3/conf/Makefile.sun3 @@ -112,12 +112,10 @@ assym.h: genassym # the compiler used as HOSTED_CC (must match the native compiler). # Often this is not possible at all, and you just have to build # the assym.h file by hand on some other machine. -gwr -genassym: genassym.i +genassym: ${SUN3}/sun3/genassym.c + ${CC} ${CPPFLAGS} -E $< > $@.i ${HOSTED_CC} -o $@ $@.i -genassym.i: ${SUN3}/sun3/genassym.c - ${CC} ${CPPFLAGS} -E ${SUN3}/sun3/genassym.c > $@ - param.c: $S/conf/param.c rm -f param.c cp $S/conf/param.c . diff --git a/sys/arch/sun3/sun3/genassym.c b/sys/arch/sun3/sun3/genassym.c index 29472b9132e..c7781ec83a2 100644 --- a/sys/arch/sun3/sun3/genassym.c +++ b/sys/arch/sun3/sun3/genassym.c @@ -1,4 +1,4 @@ -/* $OpenBSD: genassym.c,v 1.7 1997/02/14 21:13:49 kstailey Exp $ */ +/* $OpenBSD: genassym.c,v 1.8 1997/02/14 21:53:18 kstailey Exp $ */ /* $NetBSD: genassym.c,v 1.32 1996/10/23 16:39:27 gwr Exp $ */ /* @@ -200,5 +200,13 @@ main() def("FPF_REGS", &fpf->fpf_regs[0]); def("FPF_FPCR", &fpf->fpf_fpcr); + /* SPL values */ + def("SPL1", PSL_S | PSL_IPL1); + def("SPL2", PSL_S | PSL_IPL2); + def("SPL3", PSL_S | PSL_IPL3); + def("SPL4", PSL_S | PSL_IPL4); + def("SPL5", PSL_S | PSL_IPL5); + def("SPL6", PSL_S | PSL_IPL6); + exit(0); } -- 2.20.1