X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: RayeR Newsgroups: comp.os.msdos.djgpp Subject: PM interrupt handling - how to call old old ISR with slower rate than my new ISR Date: Thu, 01 Nov 2007 17:27:50 -0700 Organization: http://groups.google.com Lines: 13 Message-ID: <1193963270.088377.101010@22g2000hsm.googlegroups.com> NNTP-Posting-Host: 86.49.78.33 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" X-Trace: posting.google.com 1193963270 1745 127.0.0.1 (2 Nov 2007 00:27:50 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Fri, 2 Nov 2007 00:27:50 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse AT google DOT com Injection-Info: 22g2000hsm.googlegroups.com; posting-host=86.49.78.33; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'd like to hook timer interrupt with my new ISR so I did it with _go32_dpmi_chain_protected_mode_interrupt_vector(INT_TIMER,&timer_isr_new); works well but it makes some wrapper code which calls old timer ISR _every_ time after finished my ISR. I run timer on higher speed and I want that old ISR will be called say once per 256 interrupts. Can I safely call IRET at end of my ISR to prevent permanent old ISR calling? Or how do I setup it via _go32_dpmi_set_protected_mode_interrupt_vector? How to call old ISR? Maybe asm(lcall...) but I readed far jumps are forbidded in ISR.