2009/2/17 Eric Auer <[email protected]>: > >> /* clear the Init BSS area (what normally the RTL does */ >> memset(_ib_start, 0, _ib_end - _ib_start); > > Maybe this broke when Bart tuned the memory model recently? > Remember for example "JEMM386 int 19 fastboot compatible > storage of original pointers of hooked BIOS intr" here... > > As quite a few BIOSes also clear the RAM, it would be plausible > that a bug in this area could stay undetected for quite a while? > >> in both cases the variable ends up as 0 > > Not for RayeR, apparently: Some variables were nonzero in initdisk. > >> if this makes any difference, either >> the memset() memset above doesn't work >> or >> the error relates to the actual placement of the variable in the >> DATA segment. usually an overwriting problem or similar. >> good luck hunting if it's the latter > > As RayeR was able to fix the symptom by using BSS_INIT(x) = x style > for the macro, I hope that "if it is the latter" his fix would have > broken something else, so I believe that the memset has a problem.
I don't see it: even when tracing with DOSEMU's debugger dosdebug: t Trap 1, system state: emulated,stopped AX=0000 BX=0206 CX=0e7c DX=0a04 SI=0000 DI=0fdc SP=2240 BP=224c DS=9dd9 ES=9dd9 FS=0000 GS=0000 FL=3312 CS:IP=9062:9c5f SS:SP=9dd9:2240 9062:9c5f 88C4 mov ah,al t Trap 1, system state: emulated,stopped AX=0000 BX=0206 CX=0e7c DX=0a04 SI=0000 DI=0fdc SP=2240 BP=224c DS=9dd9 ES=9dd9 FS=0000 GS=0000 FL=3312 CS:IP=9062:9c61 SS:SP=9dd9:2240 9062:9c61 D1E9 shr cx,1 t Trap 1, system state: emulated,stopped AX=0000 BX=0206 CX=073e DX=0a04 SI=0000 DI=0fdc SP=2240 BP=224c DS=9dd9 ES=9dd9 FS=0000 GS=0000 FL=3312 CS:IP=9062:9c63 SS:SP=9dd9:2240 9062:9c63 F3AB repe stosw rep stosw is called for the correct values compared to kernel.map and the kernel boots fine. (OW 1.8, current SVN stable kernel source) So which initdisk variables do you refer too? Where are they in kernel.map? 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 [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
