From Jcurtis@VERT to ALL on Tue Jun 24 20:27:48 2025
By trial and error I discovered EMM calls enable interrupts. This can
cause havoc in a TSR where you need interrupts disabled. Finding these
bugs is not easy. My TSR enables interrupts part of the time, so I do
EMM calls there. Here's an example with comments.
void
next_irq (void)
{
int x;
next:
x = next (); /* service IRQs with */
enable (); /* interrupts enabled */
# ifndef noemm /* EMM call enables interrupts, do */
emm_get_page_map (e1); /* not do it before enable () above */ # endif
if (x) {
service_com_irqs (x);
} else
service_ticktock ();
# ifndef noemm
emm_set_page_map (e1);
# endif
disable ();
if (x)
mask_irq (NO, x);
if (iq[iz])
goto next;
}
* SLMR 2.1a *
* SLMR 2.1a *
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
Who's Online
System Info
Sysop:
deepend
Location:
Calgary, Alberta
Users:
317
Nodes:
10 (0
/
10)
Uptime:
33:03:50
Calls:
2,636
Files:
6,392
D/L today:
51 files
(8,192P bytes)
Messages:
486,742
Synchronet Oneliners
Vintagegeek@rdbbs Thu Aug 6 08:40:12 2026 Typhoon Dolphin
Vintagegeek@rdbbs Thu Aug 6 18:15:54 2026 You're The Quarterback
Vintagegeek@rdbbs Sun Aug 9 07:44:13 2026 Dammit, throw strikes, jeez
Vintagegeek@rdbbs Fri Aug 14 09:46:57 2026 Boom Boom Boom
Vintagegeek@rdbbs Fri Aug 21 04:44:35 2026 penny Penny penny
Vintagegeek@rdbbs Tue Aug 25 05:23:45 2026 WINTER IS COMING....PLEASE!