Re: [ANNOUNCE] mdb-2.6.27-rc2-ia32-08-07-08.patch

From: jmerkey
Date: Thu Aug 07 2008 - 12:25:43 EST


>
> 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

>


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/