Date: Wed, 01 Sep 1999 16:14:19 +0200 From: Poul-Henning Kamp <phk@freebsd.org> To: peter@freebsd.org Cc: current@freebsd.org Subject: isa.c misses ISA_NIRQ and friends Message-ID: <36158.936195259@critter.freebsd.dk>
next in thread | raw e-mail | index | archive | help
Peter must have forgotten some changes, until he fixes it, you can use this patch to revert his change to isa.c Index: isa.c =================================================================== RCS file: /home/ncvs/src/sys/i386/isa/isa.c,v retrieving revision 1.130 diff -u -r1.130 isa.c --- isa.c 1999/09/01 06:34:24 1.130 +++ isa.c 1999/09/01 14:11:17 @@ -104,13 +104,13 @@ if (!rle) { if (*rid < 0) return 0; - if (type == SYS_RES_IRQ && *rid >= ISA_NIRQ) + if (type == SYS_RES_IRQ && *rid > 1) return 0; - if (type == SYS_RES_DRQ && *rid >= ISA_NDRQ) + if (type == SYS_RES_DRQ && *rid > 1) return 0; - if (type != SYS_RES_MEMORY && *rid >= ISA_NMEM) + if (type != SYS_RES_MEMORY && *rid > 3) return 0; - if (type == SYS_RES_IOPORT && *rid >= ISA_NPORT) + if (type == SYS_RES_IOPORT && *rid > 7) return 0; resource_list_add(rl, type, *rid, start, end, count); } schizo# config -r LINT Removing old directory ../../compile/LINT: Done. Don't forget to do a ``make depend'' Kernel build directory is ../../compile/LINT schizo# cd /sys/com*/LINT schizo# make isa.o [...] cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include -DKERNEL -include opt_global.h -elf ../../i386/isa/isa.c ../../i386/isa/isa.c: In function `isa_alloc_resource': ../../i386/isa/isa.c:107: `ISA_NIRQ' undeclared (first use in this function) ../../i386/isa/isa.c:107: (Each undeclared identifier is reported only once ../../i386/isa/isa.c:107: for each function it appears in.) ../../i386/isa/isa.c:109: `ISA_NDRQ' undeclared (first use in this function) ../../i386/isa/isa.c:111: `ISA_NMEM' undeclared (first use in this function) ../../i386/isa/isa.c:113: `ISA_NPORT' undeclared (first use in this function) *** Error code 1 -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36158.936195259>