Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request From: dstewart@fas.ri.cmu.edu (David B Stewart) Newsgroups: comp.sys.sun Subject: Locking out Timer Interrupts Keywords: SunOS Message-ID: <5496@brazos.Rice.edu> Date: 5 Mar 90 21:02:42 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 18 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 63, message 11 How can timer interrupts which force context switches be locked out for a short period? I have some user code (not kernel code) which must run to completion (less than 100 microseconds worth) before that process does a context switch because of and expired time quantum. Device drivers have the ability to use the "splx" routine, but this code is not a device driver. Is there some kind of system call that will allow me to do that? Alternately, can anyone give me a quick description on how to create my own system calls "lock" and "unlock", using the 'syscall' command. (or point me to the proper location in the Sun Manuals; I could not find anywhere which describes how to create your own system calls; the manual only describes how to use them). I am using SunOS 4.0.3, and I don't have the Sun source code. Thanks.