From b05ba086539d876f597b8ce67fbf4756d8f4dd3e Mon Sep 17 00:00:00 2001 From: bde Date: Thu, 22 Oct 1998 16:10:29 +0000 Subject: 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(-) (limited to 'share') diff --git a/share/examples/drivers/make_device_driver.sh b/share/examples/drivers/make_device_driver.sh index e824977..e2bc74c 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]; -- cgit v1.1