Messages in this thread | | | Date | Thu, 7 Aug 2008 10:04:12 -0600 (MDT) | Subject | Re: [ANNOUNCE] mdb-2.6.27-rc2-ia32-08-07-08.patch | From | jmerkey@wolfmoun ... |
| |
> > 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
>
| |