Subject: Re: Turning off interrupts
To: Michael R. Zucca <mrz5149@cs.rit.edu>
From: Paul Goyette <paul@pgoyette.bdt.com>
List: port-mac68k
Date: 03/01/1997 19:19:45
On Sat, 1 Mar 1997, Michael R. Zucca wrote:

> I think one of the bugs I'm getting on video switching is going to require me
> to disable all interrupts while I swap modes and load colors. What's the
> function that does this? More importantly, what's the function that turns
> interrupts back on :)

To disable interrupts:

	int x = splhi();

To reenable them:

	splx(x);

> 
> I know everbody was groaning about this sort of code last month during that
> clock tick loss discussion but I think this is genuinely necessary. :)
> Basically, any RBV-style system generally places certain SCSI duties on the same
> chip as the internal video. I have a feeling that most of the time I can
> get away with fiddling with internal video but once in a while intvid and
> SCSI seem to be butting heads with each other.
> 
> Thanks.
> 
> _______________________________________________________________________
>  Michael Zucca - mrz5149@rit.cs.rit.edu - http://www.rit.edu/~mrz5149/
>  "I will choose a path that's clear. I will choose Freewill. "
>   --Rush, Freewill
> _______________________________________________________________________
> 
> 
> 

------------------------------------------------------------------------------
| Paul Goyette       | PGP Public Key fingerprint:  | E-mail addresses:      |
| Network Consultant |     0E 40 D2 FC 2A 13 74 A0  |  paul@pgoyette.bdt.com |
| and kernel hacker  |     E4 69 D5 BE 65 E4 56 C6  |  paul_goyette@ins.com  |
------------------------------------------------------------------------------