[ros-dev] Re: [ros-cvs] CVS Update: reactos

Gregor Anich blight at blight.eu.org
Fri Dec 10 17:37:49 CET 2004


Hartmut Birr wrote:

> Gregor Anich schrieb:
>
>> CVSROOT:    /CVS/ReactOS
>> Module name:    reactos
>> Repository:    reactos/ntoskrnl/include/
>> Changes by:    blight at mok.osexperts.com    04/12/10 06:58:26
>>
>> Modified files:
>>     reactos/ntoskrnl/dbg/: print.c     reactos/ntoskrnl/include/: 
>> config.h
>> Log message:
>>     Add an option to serialize DbgPrint - don't worry, it's disabled 
>> by default and meant only for those who are tired of reading mixed 
>> debug messages.
>>  
>>
> Hi, 
> I like your idea. For my smp build, I've add a simple spinlock which 
> does serialize the access to the real debug print function. Your 
> implementation has two problems. The first, it is possible to call 
> DbgPrint from each interupt level, so it isn't possible to use 
> ExAllocatePool. The second, we have nice macros like DPRINT, CPRINT 
> or  KEBUGCHECK, which calls DbgPrint for twice. This should be merged 
> in one call.  
> - Hartmut


Hi!

I did not think about IRQL problems. Is there any way to dynamically 
allocate memory from any IRQL?
Merging multiple calls into one will be problematic with MSVC I think - 
does anybody else have an opinion on that?

 - blight


More information about the Ros-dev mailing list