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
Bob Worm
Mon Jun 15 08:49:42 2026
from
Wales, Uk
via
Telnet
Bob Worm
Mon Jun 15 08:37:18 2026
from
Wales, Uk
via
Telnet
Centurion
Sun Jun 14 20:24:42 2026
from
Berea, Ohio
via
Telnet
Adyx
Sun Jun 14 18:52:45 2026
from
Czerwionka-Leszczyny,slaskie
via
Telnet
Adyx
Sun Jun 14 18:49:25 2026
from
Czerwionka-Leszczyny,slaskie
via
Telnet
Bob Worm
Sun Jun 14 07:56:09 2026
from
Wales, Uk
via
Telnet
Spearb0y
Sun Jun 14 04:40:36 2026
from
Massachusetts
via
SSH
Neidnex
Sun Jun 14 03:19:19 2026
from
Serbia
via
Telnet