Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion What would you like to see most in minix?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
James da Silva  
View profile   Translate to Translated (View Original)
 More options 26 Aug 1991, 19:02
Newsgroups: comp.os.minix
From: j...@cs.umd.edu (James da Silva)
Date: 26 Aug 91 15:39:07 GMT
Local: Mon 26 Aug 1991 16:39
Subject: Re: What would you like to see most in minix?
In article <1991Aug26.110602.19...@klaava.Helsinki.FI> torva...@klaava.Helsinki.FI (Linus Benedict Torvalds) writes:

>Unlike minix, I also happen to LIKE interrupts, so interrupts are
>handled without trying to hide the reason behind them (I especially like
>my hard-disk-driver.  Anybody else make interrupts drive a state-
>machine?).

Sure.  For one example, Alessandro Forin's Mach SCSI adapter drivers are
written this way.  A comment from his code:

/*
 * This layer works based on small simple 'scripts' that are installed
 * at the start of the command and drive the chip to completion.
 * The idea comes from the specs of the NCR 53C700 'script' processor.
 *
 * There are various reasons for this, mainly
 * - Performance: identify the common (successful) path, and follow it;
 *   at interrupt time no code is needed to find the current status
 * - Code size: it should be easy to compact common operations
 * - Adaptability: the code skeleton should adapt to different chips without
 *   terrible complications.
 * - Error handling: and it is easy to modify the actions performed
 *   by the scripts to cope with strange but well identified sequences
 *
 */

An interesting way to write a device driver.  I believe this is a very old
technique, too.

Good luck on your OS project, it sounds like a lot of fun.
Jaime
...........................................................................
: domain: j...@cs.umd.edu                                   James da Silva
: path:   uunet!mimsy!jds                   Systems Design & Analysis Group


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google