lkml.org 
[lkml]   [2008]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [ANNOUNCE] mdb-2.6.27-rc2-ia32-08-07-08.patch
From
>
> If there are interdependencies in these datasets, with which mechanisms
> if not locks do you serialize critical sections?
>
>
>> +void MDBInitializeDebugger(void)
>> +{
> ...
>> + for (i=0; i < MAX_PROCESSORS; i++)
>> + {
>> + BreakMask[i] = 0;
>> + ProcessorHold[i] = 0;
>> + ProcessorState[i] = 0;
>> + ProcessorMode[i] = 0;
>> + }
>
> Not necessary, because static (and extern) variables are already
> implicitly initialized to zero.
> --
> Stefan Richter
> -=====-==--- =--- --===
> http://arcgraph.de/sr/


Another M$ legacy relict. On Microsoft C compilers (older ones) failure to
initialize global data produces undefined results since they do not always
zero out memory and global data -- they still do not in all cases.

I will remove this a well. Still more checkpatch.pl stuff for me to do.
am down to about 3000+ noisy messages now ...


Jeff

>




\
 
 \ /
  Last update: 2008-08-07 18:27    [from the cache]
©2003-2011 Jasper Spaans