Using DebugPrintF and Forbid

This forum is for general developer support questions.
Post Reply
capehill
Posts: 24
Joined: Sun Jun 18, 2017 1:07 pm

Using DebugPrintF and Forbid

Post by capehill »

Does DebugPrintF enter wait state? In other words, should DebugPrintFs be removed out of Forbid/Permit context?
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1479
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: Using DebugPrintF and Forbid

Post by tonyw »

No, DebugPrintF() waits on the "done" bit in the serial device register. It uses no interrupts and hangs the machine while it outputs the string of characters.

Forbid/Permit calls are unnecessary for DebugPrintF() to work and will have no effect on it.
cheers
tony
capehill
Posts: 24
Joined: Sun Jun 18, 2017 1:07 pm

Re: Using DebugPrintF and Forbid

Post by capehill »

Thanks for the information.
Post Reply