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 Jul 14 12:23:28 2025
from
Wales, Uk
via
Telnet
Centurion
Mon Jul 14 11:21:44 2025
from
Berea, Ohio
via
Telnet
Centurion
Mon Jul 14 11:16:51 2025
from
Berea, Ohio
via
Telnet
Centurion
Mon Jul 14 11:01:09 2025
from
Berea, Ohio
via
Telnet
Plume
Mon Jul 14 10:28:36 2025
from
Uk
via
Raw
Bagwaa
Mon Jul 14 07:38:51 2025
from
Nottingham
via
Telnet
Plume
Sun Jul 13 22:34:15 2025
from
Uk
via
SSH
Bagwaa
Sun Jul 13 21:50:32 2025
from
Nottingham
via
Telnet