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
Recent Visitors
Vintagegeek
Thu Sep 10 09:48:27 2026
from
Swarthmore, Pa
via
Telnet
Trevor Walkden
Wed Sep 9 09:36:04 2026
from
Lethbridge, Ab
via
Telnet
Vintagegeek
Tue Sep 8 07:51:33 2026
from
Swarthmore, Pa
via
Telnet
Trevor Walkden
Mon Sep 7 12:15:05 2026
from
Lethbridge, Ab
via
Telnet
System Info
Sysop:
deepend
Location:
Calgary, Alberta
Users:
318
Nodes:
10 (0
/
10)
Uptime:
22:09:36
Calls:
2,660
Calls today:
1
Files:
6,455
D/L today:
220 files
(96,273K bytes)
Messages:
488,991
Synchronet Oneliners
Vintagegeek@rdbbs Tue Aug 25 05:23:45 2026 WINTER IS COMING....PLEASE!
Vintagegeek@rdbbs Wed Aug 26 10:10:56 2026 I Give Up
Windows2kfan@rdbbs Mon Aug 31 06:09:35 2026 hello
Vintagegeek@rdbbs Mon Aug 31 06:48:34 2026 Windows98 was the best
Vintagegeek@rdbbs Wed Sep 2 11:01:44 2026 And Away We Go
Vintagegeek@rdbbs Thu Sep 3 06:41:12 2026 A BLT to go please