From 64b2faf8a4f8dfc5b84b835b49bbdc11d073b31c Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Thu, 22 Oct 1998 16:10:29 +0000 Subject: [PATCH] Removed all `vector xxxintr' specifications. Interrupt handlers are now configured in drivers. Attempted to update the generated interrupt handler attachment to the current "temporary" method. Not tested. To test it, someone would first have to fix the bitrot in the ioctl command arg type. --- share/examples/drivers/make_device_driver.sh | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/share/examples/drivers/make_device_driver.sh b/share/examples/drivers/make_device_driver.sh index e8249770a07..e2bc74c304f 100755 --- a/share/examples/drivers/make_device_driver.sh +++ b/share/examples/drivers/make_device_driver.sh @@ -29,7 +29,7 @@ DONE cat >${UPPER} <>${UPPER} @@ -37,7 +37,7 @@ grep -v GENERIC < GENERIC >>${UPPER} cat >>${UPPER} <../isa/${1}.c <../isa/${1}.c <../isa/${1}.c <id_unit; sc_p scp = sca[unit]; - + + /* + * Attach our interrupt handler to the device struct. Our caller + * will attach it to the hardware soon after we return. + */ + dev->id_ointr = ${1}intr; + /* * Allocate storage for this instance . */ @@ -219,7 +225,7 @@ do { /* the do-while is a safe way to do this grouping */ \ #define CHECKUNIT_DIAG(RETVAL) #endif /* DIAGNOSTIC */ -void +static void ${1}intr(int unit) { sc_p scp = sca[unit];