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:
287
Nodes:
10 (0
/
10)
Uptime:
01:18:40
Calls:
2,449
Files:
5,322
D/L today:
14 files
(9,995K bytes)
Messages:
445,137
Synchronet Oneliners
Vintagegeek@rdbbs Thu Nov 27 05:45:45 2025 HAPPY THANKSGIVING
Vintagegeek@rdbbs Fri Nov 28 14:18:50 2025 Amazon Prime Green Friday
Vintagegeek@rdbbs Fri Dec 5 06:02:20 2025 Maple Leafs
Pedro Herzensbuch@rdbbs Sat Dec 6 14:51:28 2025 Van a pasar cosas
Vintagegeek@rdbbs Sun Dec 7 13:30:36 2025 Merry Christmas
Vintagegeek@rdbbs Wed Dec 10 08:04:26 2025 M E R R Y C H R I S T M A S