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:
281
Nodes:
10 (0
/
10)
Uptime:
11:25:47
Calls:
2,401
Files:
5,155
D/L today:
24 files
(9,917K bytes)
Messages:
435,896
Synchronet Oneliners
Vintagegeek@rdbbs Thu Oct 2 09:15:49 2025 Next
Vintagegeek@rdbbs Fri Oct 3 10:18:45 2025 Gotta gotra gotta - make a hole
Dev00903@rdbbs Mon Oct 6 04:48:23 2025 hello guys
Dev00903@rdbbs Mon Oct 6 04:48:48 2025 how it works this?
Vintagegeek@rdbbs Fri Oct 10 11:47:51 2025 Is it 1984 ?
Witness@rdbbs Sun Oct 26 00:03:42 2025 Is this the BBS yet?