From 8cd82ab7b70ba8d157625675bdb22809cd958c93 Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 27 Nov 2001 00:15:58 +0000 Subject: [PATCH] Move interrupt-related stuff out of the generic 32-bit ARM genassym.cf and into platform-specific genassym.cf files. --- sys/arch/acorn32/acorn32/genassym.cf | 55 +++++++++++++++++++ sys/arch/acorn32/conf/Makefile.acorn32 | 4 +- sys/arch/arm/footbridge/genassym.cf | 55 +++++++++++++++++++ sys/arch/arm32/arm32/genassym.cf | 55 +++++++++++++++++++ sys/arch/arm32/conf/Makefile.arm32 | 4 +- sys/arch/cats/conf/Makefile.cats.inc | 3 + sys/arch/dnard/conf/Makefile.dnard.inc | 3 + sys/arch/dnard/dnard/genassym.cf | 55 +++++++++++++++++++ sys/arch/evbarm/conf/Makefile.evbarm.inc | 4 +- sys/arch/evbarm/ifpga/genassym.cf | 55 +++++++++++++++++++ sys/arch/evbarm/iq80310/genassym.cf | 55 +++++++++++++++++++ .../netwinder/conf/Makefile.netwinder.inc | 4 +- 12 files changed, 348 insertions(+), 4 deletions(-) create mode 100644 sys/arch/acorn32/acorn32/genassym.cf create mode 100644 sys/arch/arm/footbridge/genassym.cf create mode 100644 sys/arch/arm32/arm32/genassym.cf create mode 100644 sys/arch/cats/conf/Makefile.cats.inc create mode 100644 sys/arch/dnard/conf/Makefile.dnard.inc create mode 100644 sys/arch/dnard/dnard/genassym.cf create mode 100644 sys/arch/evbarm/ifpga/genassym.cf create mode 100644 sys/arch/evbarm/iq80310/genassym.cf diff --git a/sys/arch/acorn32/acorn32/genassym.cf b/sys/arch/acorn32/acorn32/genassym.cf new file mode 100644 index 000000000000..c6b8b6c28d77 --- /dev/null +++ b/sys/arch/acorn32/acorn32/genassym.cf @@ -0,0 +1,55 @@ +# $NetBSD: genassym.cf,v 1.1 2001/11/27 00:15:58 thorpej Exp $ + +# Copyright (c) 1982, 1990 The Regents of the University of California. +# All rights reserved. +# +# This code is derived from software contributed to Berkeley by +# William Jolitz. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the University of +# California, Berkeley and its contributors. +# 4. Neither the name of the University nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +include + +define IH_FUNC offsetof(struct irqhandler, ih_func) +define IH_ARG offsetof(struct irqhandler, ih_arg) +define IH_FLAGS offsetof(struct irqhandler, ih_flags) +define IH_LEVEL offsetof(struct irqhandler, ih_level) +define IH_NUM offsetof(struct irqhandler, ih_num) +define IH_MASKADDR offsetof(struct irqhandler, ih_maskaddr) +define IH_MASKBITS offsetof(struct irqhandler, ih_maskbits) +define IH_NEXT offsetof(struct irqhandler, ih_next) + +define FH_FUNC offsetof(struct fiqhandler, fh_func) +define FH_R8 offsetof(struct fiqhandler, fh_r8) +define FH_R9 offsetof(struct fiqhandler, fh_r9) +define FH_R10 offsetof(struct fiqhandler, fh_r10) +define FH_R11 offsetof(struct fiqhandler, fh_r11) +define FH_R12 offsetof(struct fiqhandler, fh_r12) +define FH_R13 offsetof(struct fiqhandler, fh_r13) +define FH_MASK offsetof(struct fiqhandler, fh_mask) diff --git a/sys/arch/acorn32/conf/Makefile.acorn32 b/sys/arch/acorn32/conf/Makefile.acorn32 index 15fbf7d8f024..4a453f4bb00b 100644 --- a/sys/arch/acorn32/conf/Makefile.acorn32 +++ b/sys/arch/acorn32/conf/Makefile.acorn32 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.acorn32,v 1.7 2001/11/26 23:52:58 thorpej Exp $ +# $NetBSD: Makefile.acorn32,v 1.8 2001/11/27 00:16:00 thorpej Exp $ # Makefile for NetBSD # @@ -59,6 +59,8 @@ LOADADDRESS= 0xF0000000 LINKFLAGS= -Ttext ${LOADADDRESS} -e start STRIPFLAGS= -g +GENASSYM_EXTRAS+= ${ACORN32}/acorn32/genassym.cf + %INCLUDES HOSTED_CC= ${CC} diff --git a/sys/arch/arm/footbridge/genassym.cf b/sys/arch/arm/footbridge/genassym.cf new file mode 100644 index 000000000000..c6b8b6c28d77 --- /dev/null +++ b/sys/arch/arm/footbridge/genassym.cf @@ -0,0 +1,55 @@ +# $NetBSD: genassym.cf,v 1.1 2001/11/27 00:15:58 thorpej Exp $ + +# Copyright (c) 1982, 1990 The Regents of the University of California. +# All rights reserved. +# +# This code is derived from software contributed to Berkeley by +# William Jolitz. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the University of +# California, Berkeley and its contributors. +# 4. Neither the name of the University nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +include + +define IH_FUNC offsetof(struct irqhandler, ih_func) +define IH_ARG offsetof(struct irqhandler, ih_arg) +define IH_FLAGS offsetof(struct irqhandler, ih_flags) +define IH_LEVEL offsetof(struct irqhandler, ih_level) +define IH_NUM offsetof(struct irqhandler, ih_num) +define IH_MASKADDR offsetof(struct irqhandler, ih_maskaddr) +define IH_MASKBITS offsetof(struct irqhandler, ih_maskbits) +define IH_NEXT offsetof(struct irqhandler, ih_next) + +define FH_FUNC offsetof(struct fiqhandler, fh_func) +define FH_R8 offsetof(struct fiqhandler, fh_r8) +define FH_R9 offsetof(struct fiqhandler, fh_r9) +define FH_R10 offsetof(struct fiqhandler, fh_r10) +define FH_R11 offsetof(struct fiqhandler, fh_r11) +define FH_R12 offsetof(struct fiqhandler, fh_r12) +define FH_R13 offsetof(struct fiqhandler, fh_r13) +define FH_MASK offsetof(struct fiqhandler, fh_mask) diff --git a/sys/arch/arm32/arm32/genassym.cf b/sys/arch/arm32/arm32/genassym.cf new file mode 100644 index 000000000000..6056bbc63028 --- /dev/null +++ b/sys/arch/arm32/arm32/genassym.cf @@ -0,0 +1,55 @@ +# $NetBSD: genassym.cf,v 1.10 2001/11/27 00:15:58 thorpej Exp $ + +# Copyright (c) 1982, 1990 The Regents of the University of California. +# All rights reserved. +# +# This code is derived from software contributed to Berkeley by +# William Jolitz. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the University of +# California, Berkeley and its contributors. +# 4. Neither the name of the University nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +include + +define IH_FUNC offsetof(struct irqhandler, ih_func) +define IH_ARG offsetof(struct irqhandler, ih_arg) +define IH_FLAGS offsetof(struct irqhandler, ih_flags) +define IH_LEVEL offsetof(struct irqhandler, ih_level) +define IH_NUM offsetof(struct irqhandler, ih_num) +define IH_MASKADDR offsetof(struct irqhandler, ih_maskaddr) +define IH_MASKBITS offsetof(struct irqhandler, ih_maskbits) +define IH_NEXT offsetof(struct irqhandler, ih_next) + +define FH_FUNC offsetof(struct fiqhandler, fh_func) +define FH_R8 offsetof(struct fiqhandler, fh_r8) +define FH_R9 offsetof(struct fiqhandler, fh_r9) +define FH_R10 offsetof(struct fiqhandler, fh_r10) +define FH_R11 offsetof(struct fiqhandler, fh_r11) +define FH_R12 offsetof(struct fiqhandler, fh_r12) +define FH_R13 offsetof(struct fiqhandler, fh_r13) +define FH_MASK offsetof(struct fiqhandler, fh_mask) diff --git a/sys/arch/arm32/conf/Makefile.arm32 b/sys/arch/arm32/conf/Makefile.arm32 index f7339fca48a0..6461fa5c9079 100644 --- a/sys/arch/arm32/conf/Makefile.arm32 +++ b/sys/arch/arm32/conf/Makefile.arm32 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.arm32,v 1.62 2001/11/26 23:52:34 thorpej Exp $ +# $NetBSD: Makefile.arm32,v 1.63 2001/11/27 00:16:00 thorpej Exp $ # Makefile for NetBSD # @@ -59,6 +59,8 @@ LOADADDRESS= 0xF0000000 LINKFLAGS= -Ttext ${LOADADDRESS} -e start STRIPFLAGS= -g +GENASSYM_EXTRAS+= ${ARM32}/arm32/genassym.cf + %INCLUDES HOSTED_CC= ${CC} diff --git a/sys/arch/cats/conf/Makefile.cats.inc b/sys/arch/cats/conf/Makefile.cats.inc new file mode 100644 index 000000000000..aad0051c34a2 --- /dev/null +++ b/sys/arch/cats/conf/Makefile.cats.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.cats.inc,v 1.1 2001/11/27 00:15:59 thorpej Exp $ + +GENASSYM_EXTRAS+= ${ARM}/footbridge/genassym.cf diff --git a/sys/arch/dnard/conf/Makefile.dnard.inc b/sys/arch/dnard/conf/Makefile.dnard.inc new file mode 100644 index 000000000000..ed7d60dc24d1 --- /dev/null +++ b/sys/arch/dnard/conf/Makefile.dnard.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.dnard.inc,v 1.1 2001/11/27 00:15:59 thorpej Exp $ + +GENASSYM_EXTRAS+= ${THISARM}/dnard/genassym.cf diff --git a/sys/arch/dnard/dnard/genassym.cf b/sys/arch/dnard/dnard/genassym.cf new file mode 100644 index 000000000000..4c78ac1be3f0 --- /dev/null +++ b/sys/arch/dnard/dnard/genassym.cf @@ -0,0 +1,55 @@ +# $NetBSD: genassym.cf,v 1.1 2001/11/27 00:15:59 thorpej Exp $ + +# Copyright (c) 1982, 1990 The Regents of the University of California. +# All rights reserved. +# +# This code is derived from software contributed to Berkeley by +# William Jolitz. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the University of +# California, Berkeley and its contributors. +# 4. Neither the name of the University nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +include + +define IH_FUNC offsetof(struct irqhandler, ih_func) +define IH_ARG offsetof(struct irqhandler, ih_arg) +define IH_FLAGS offsetof(struct irqhandler, ih_flags) +define IH_LEVEL offsetof(struct irqhandler, ih_level) +define IH_NUM offsetof(struct irqhandler, ih_num) +define IH_MASKADDR offsetof(struct irqhandler, ih_maskaddr) +define IH_MASKBITS offsetof(struct irqhandler, ih_maskbits) +define IH_NEXT offsetof(struct irqhandler, ih_next) + +define FH_FUNC offsetof(struct fiqhandler, fh_func) +define FH_R8 offsetof(struct fiqhandler, fh_r8) +define FH_R9 offsetof(struct fiqhandler, fh_r9) +define FH_R10 offsetof(struct fiqhandler, fh_r10) +define FH_R11 offsetof(struct fiqhandler, fh_r11) +define FH_R12 offsetof(struct fiqhandler, fh_r12) +define FH_R13 offsetof(struct fiqhandler, fh_r13) +define FH_MASK offsetof(struct fiqhandler, fh_mask) diff --git a/sys/arch/evbarm/conf/Makefile.evbarm.inc b/sys/arch/evbarm/conf/Makefile.evbarm.inc index 156c131e8cee..e6c39bdff100 100644 --- a/sys/arch/evbarm/conf/Makefile.evbarm.inc +++ b/sys/arch/evbarm/conf/Makefile.evbarm.inc @@ -1,6 +1,7 @@ -# $NetBSD: Makefile.evbarm.inc,v 1.4 2001/11/20 12:56:25 lukem Exp $ +# $NetBSD: Makefile.evbarm.inc,v 1.5 2001/11/27 00:16:00 thorpej Exp $ .if (${BOARDTYPE} == "integrator") +GENASSYM_EXTRAS+= ${THISARM}/ifpga/genassym.cf SYSTEM_FIRST_OBJ= intmmu.o SYSTEM_FIRST_SFILE= ${THISARM}/integrator/intmmu.S .endif @@ -10,6 +11,7 @@ SYSTEM_LD_TAIL_EXTRA= \ ${DBSYM} $@ || true .if (${BOARDTYPE} == "iq80310") +GENASSYM_EXTRAS+= ${THISARM}/iq80310/genassym.cf SYSTEM_LD_TAIL_EXTRA+=; \ echo ${OBJCOPY} -S -O srec $@ $@.srec; \ ${OBJCOPY} -S -O srec $@ $@.srec diff --git a/sys/arch/evbarm/ifpga/genassym.cf b/sys/arch/evbarm/ifpga/genassym.cf new file mode 100644 index 000000000000..4c78ac1be3f0 --- /dev/null +++ b/sys/arch/evbarm/ifpga/genassym.cf @@ -0,0 +1,55 @@ +# $NetBSD: genassym.cf,v 1.1 2001/11/27 00:15:59 thorpej Exp $ + +# Copyright (c) 1982, 1990 The Regents of the University of California. +# All rights reserved. +# +# This code is derived from software contributed to Berkeley by +# William Jolitz. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the University of +# California, Berkeley and its contributors. +# 4. Neither the name of the University nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +include + +define IH_FUNC offsetof(struct irqhandler, ih_func) +define IH_ARG offsetof(struct irqhandler, ih_arg) +define IH_FLAGS offsetof(struct irqhandler, ih_flags) +define IH_LEVEL offsetof(struct irqhandler, ih_level) +define IH_NUM offsetof(struct irqhandler, ih_num) +define IH_MASKADDR offsetof(struct irqhandler, ih_maskaddr) +define IH_MASKBITS offsetof(struct irqhandler, ih_maskbits) +define IH_NEXT offsetof(struct irqhandler, ih_next) + +define FH_FUNC offsetof(struct fiqhandler, fh_func) +define FH_R8 offsetof(struct fiqhandler, fh_r8) +define FH_R9 offsetof(struct fiqhandler, fh_r9) +define FH_R10 offsetof(struct fiqhandler, fh_r10) +define FH_R11 offsetof(struct fiqhandler, fh_r11) +define FH_R12 offsetof(struct fiqhandler, fh_r12) +define FH_R13 offsetof(struct fiqhandler, fh_r13) +define FH_MASK offsetof(struct fiqhandler, fh_mask) diff --git a/sys/arch/evbarm/iq80310/genassym.cf b/sys/arch/evbarm/iq80310/genassym.cf new file mode 100644 index 000000000000..46e86e166806 --- /dev/null +++ b/sys/arch/evbarm/iq80310/genassym.cf @@ -0,0 +1,55 @@ +# $NetBSD: genassym.cf,v 1.1 2001/11/27 00:16:00 thorpej Exp $ + +# Copyright (c) 1982, 1990 The Regents of the University of California. +# All rights reserved. +# +# This code is derived from software contributed to Berkeley by +# William Jolitz. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the University of +# California, Berkeley and its contributors. +# 4. Neither the name of the University nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +include + +define IH_FUNC offsetof(struct irqhandler, ih_func) +define IH_ARG offsetof(struct irqhandler, ih_arg) +define IH_FLAGS offsetof(struct irqhandler, ih_flags) +define IH_LEVEL offsetof(struct irqhandler, ih_level) +define IH_NUM offsetof(struct irqhandler, ih_num) +define IH_MASKADDR offsetof(struct irqhandler, ih_maskaddr) +define IH_MASKBITS offsetof(struct irqhandler, ih_maskbits) +define IH_NEXT offsetof(struct irqhandler, ih_next) + +define FH_FUNC offsetof(struct fiqhandler, fh_func) +define FH_R8 offsetof(struct fiqhandler, fh_r8) +define FH_R9 offsetof(struct fiqhandler, fh_r9) +define FH_R10 offsetof(struct fiqhandler, fh_r10) +define FH_R11 offsetof(struct fiqhandler, fh_r11) +define FH_R12 offsetof(struct fiqhandler, fh_r12) +define FH_R13 offsetof(struct fiqhandler, fh_r13) +define FH_MASK offsetof(struct fiqhandler, fh_mask) diff --git a/sys/arch/netwinder/conf/Makefile.netwinder.inc b/sys/arch/netwinder/conf/Makefile.netwinder.inc index 76ee5cce9f05..0032013fdca9 100644 --- a/sys/arch/netwinder/conf/Makefile.netwinder.inc +++ b/sys/arch/netwinder/conf/Makefile.netwinder.inc @@ -1,4 +1,6 @@ -# $NetBSD: Makefile.netwinder.inc,v 1.3 2001/11/20 12:56:34 lukem Exp $ +# $NetBSD: Makefile.netwinder.inc,v 1.4 2001/11/27 00:16:01 thorpej Exp $ + +GENASSYM_EXTRAS+= ${ARM}/footbridge/genassym.cf SYSTEM_FIRST_OBJ= nwmmu.o SYSTEM_FIRST_SFILE= ${THISARM}/${MACHINE}/nwmmu.S