Hi Hans, replying via freedos-kernel... > My system seems to boot until it starts init_device() in kernel/main.c. > InitIO calls init_device 12 times before my system crashes (see below)...
> KERNEL: Entering init_kernel()... > HMA moving 0268:0000 up to 9fde:0000 for 9cdf bytes This message is a bit misleading - the kernel is moved to the end of DOS RAM instead of to the HMA (I assume you do not have HIMEM loaded yet ;-))... What worries me here is that moving 40 kB to a location only 0.5 kB before the end of the first 640 kB of RAM means that a part of the kernel will end up AFTER that - it could fall into a hole without any RAM, or it could end up in the VGA RAM if it exists?? Maybe your int 0x12 handler reports too much DOS RAM? Or maybe your _CS or FP_SEG have problems? Do you use the recommended OpenWatcom or Turbo C 2 compilers or something else? I must say the calculation of the arg for MoveKernel (lpTop) looks a bit like black magic... > KERNEL: Calling InitIO()... > *InitIO* *InitIO* *InitIO* *InitIO* *InitIO* *InitIO* > *InitIO* *InitIO* *InitIO* *InitIO* *InitIO* *InitIO* At which place did you insert that InitIO printing? If in init_device, then maybe you can make it show which device it handles. Normal sequence would be: nul, con, prn, aux, lpt1, lpt2, lpt3, com1, com2, com3, com4, clock$, blockdevices > Invalid Opcode at 0F68 00D0 3286 00D0 D400 8227 1332 7003 > E000 7C27 7CAD FEAD 72FF ... whatever ;-) It is also possible that initio worked and you crashed in InitPrinters instead, which calls int 0x11 and 0x17.0100? Eric PS: SOURCE_DATE_STRING being set to Sep 09 2005 indicates you do not use the most recent sources - please update to SVN or http://rugxulo.googlepages.com/ke2008mar8-src.zip ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Freedos-kernel mailing list Freedos-kernel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-kernel