summaryrefslogtreecommitdiffstats
path: root/share/examples
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-09-22 16:10:12 +0000
committered <ed@FreeBSD.org>2008-09-22 16:10:12 +0000
commit6c1702dda9549dad4438209c6c929bf74d32c680 (patch)
treea3669b0ad58b3f21de8bb15d9d71256d22c2bf6e /share/examples
parent3b732278f84fb37ae6ead319be8692fd8f46e445 (diff)
downloadFreeBSD-src-6c1702dda9549dad4438209c6c929bf74d32c680.zip
FreeBSD-src-6c1702dda9549dad4438209c6c929bf74d32c680.tar.gz
Make the make_pseudo_driver.sh shellscript work again.
It seems this script was broken because of the SYSINIT changes and a rather awkward variable initialisation. For some reason the make_device_driver.sh script is also broken, related to BUS_SETUP_INTR. I have no experience with FreeBSD's interrupt handling, so I hope someone else is willing to take a look at that shell script. PR: misc/126435 MFC after: 1 month
Diffstat (limited to 'share/examples')
-rw-r--r--share/examples/drivers/make_pseudo_driver.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/examples/drivers/make_pseudo_driver.sh b/share/examples/drivers/make_pseudo_driver.sh
index a7d49ac..b620c66 100644
--- a/share/examples/drivers/make_pseudo_driver.sh
+++ b/share/examples/drivers/make_pseudo_driver.sh
@@ -344,7 +344,7 @@ static void
${1}_drvinit(void *unused)
{
int unit;
- sc_p scp = sca[unit];
+ sc_p scp;
for (unit = 0; unit < N${UPPER}; unit++) {
/*
@@ -362,7 +362,7 @@ ${1}_drvinit(void *unused)
}
SYSINIT(${1}dev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE+CDEV_MAJOR,
- ${1}_drvinit, NULL)
+ ${1}_drvinit, NULL);
DONE
cat >${TOP}/sys/${1}io.h <<DONE
OpenPOWER on IntegriCloud