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:
294
Nodes:
10 (0
/
10)
Uptime:
123:12:05
Calls:
2,507
Calls today:
1
Files:
5,676
D/L today:
12 files
(10,223K bytes)
Messages:
461,854
Synchronet Oneliners
Vintagegeek@rdbbs Sun Feb 15 14:57:42 2026 Go Flames
Vintagegeek@rdbbs Tue Feb 24 07:04:42 2026 Flyers
Vintagegeek@rdbbs Thu Mar 5 09:15:57 2026 To the Beach
Vintagegeek@rdbbs Fri Mar 6 17:07:01 2026 To The LifeBoats
Vintagegeek@rdbbs Sun Mar 8 10:57:24 2026 Firefly - Serenity