aboutsummaryrefslogtreecommitdiff
path: root/share/examples/drivers
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2008-09-22 16:10:12 +0000
committerEd Schouten <ed@FreeBSD.org>2008-09-22 16:10:12 +0000
commit30105b9cc7f69182d07d32873d5d2898858c722d (patch)
treea3669b0ad58b3f21de8bb15d9d71256d22c2bf6e /share/examples/drivers
parent663c58007ed3ede48756b13b8377ce7478de628b (diff)
downloadsrc-30105b9cc7f69182d07d32873d5d2898858c722d.tar.gz
src-30105b9cc7f69182d07d32873d5d2898858c722d.zip
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
Notes
Notes: svn path=/head/; revision=183272
Diffstat (limited to 'share/examples/drivers')
-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 a7d49ac1df8a..b620c66215a6 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