Using DebugPrintF and Forbid

This forum is for general developer support questions.

Using DebugPrintF and Forbid

Postby capehill » Fri Mar 16, 2018 10:15 am

Does DebugPrintF enter wait state? In other words, should DebugPrintFs be removed out of Forbid/Permit context?
capehill
 
Posts: 24
Joined: Sun Jun 18, 2017 2:07 pm

Re: Using DebugPrintF and Forbid

Postby tonyw » Fri Mar 16, 2018 1:23 pm

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
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 1313
Joined: Wed Mar 09, 2011 2:36 pm
Location: Sydney, Australia

Re: Using DebugPrintF and Forbid

Postby capehill » Fri Mar 16, 2018 2:54 pm

Thanks for the information.
capehill
 
Posts: 24
Joined: Sun Jun 18, 2017 2:07 pm


Return to General Developer Support

Who is online

Users browsing this forum: No registered users and 1 guest