2009/5/3 Eric Auer <e.a...@jpberlin.de>: > RayeR wrote: >> In inidisk.c I had a note >> COUNT nUnits BSS_INIT(0); /* Watcom C 11.x didn't initialized, fixed to >> = 0 */ >> so then I modded init-mod.h >> >> #if ((defined _MSC_VER) || (defined __WATCOMC__)) >> #define BSS_INIT(x) = x >> #else >> #define BSS_INIT(x) >> #endif
Ok, I think I understand: the BSS init does its job (or FreeDOS would not work anywhere!) but something else might overwrite nUnits. Namely by changing COUNT nUnits; to COUNT nUnits=0; the placement of the variable is changed from I_BSS to I_DATA, and there it is not touched. But I think something else overwrites nUnits, and after the change will overwrite somewhere else where it is apparently harmless, so there must be another bug somewhere. To be investigated later (I'm going to be away and offline for a week). Bart ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Freedos-kernel mailing list Freedos-kernel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-kernel