Hi 

Below is the patch for the condition 

where the floppy image specified to be the boot device is not available,
is taken care of

On Fri, 17 Nov 2000, Hanish Menon C wrote:
> Rather if the specified floppy image cann't be loaded and its the boot
> device, we should be panicing out there itself. Rather than waiting for
> later.


diff -Naur /hanishkvc/tocheck/plex86/plex86/user/plugins/bochs/iodev/floppy.cc 
/usr/local/src/plex86/user/plugins/bochs/iodev/floppy.cc
--- /hanishkvc/tocheck/plex86/plex86/user/plugins/bochs/iodev/floppy.cc Mon Aug 14 
02:21:01 2000
+++ /usr/local/src/plex86/user/plugins/bochs/iodev/floppy.cc    Fri Nov 17 16:54:23 
+2000
@@ -116,8 +116,13 @@
     BX_FD_THIS s.num_supported_floppies++;
     if ( bx_options.floppya.initial_status == BX_INSERTED) {
       if (evaluate_media(bx_options.floppya.type, bx_options.floppya.path,
-                   & BX_FD_THIS s.media[0]))
+                   & BX_FD_THIS s.media[0])) {             
         BX_FD_THIS s.media_present[0] = 1;
+        }  
+        else {
+          if(strncmp(bx_options.bootdrive,"a",1) == 0)
+            bx_panic("[Error] Unable to load the boot device floppya\n");
+        }
       }
     }
 
@@ -157,8 +162,13 @@
     BX_FD_THIS s.num_supported_floppies++;
     if ( bx_options.floppyb.initial_status == BX_INSERTED) {
       if (evaluate_media(bx_options.floppyb.type, bx_options.floppyb.path,
-                   & BX_FD_THIS s.media[1]))
+                   & BX_FD_THIS s.media[1])) {
         BX_FD_THIS s.media_present[1] = 1;
+        }  
+        else {
+          if(strncmp(bx_options.bootdrive,"b",1) == 0)
+            bx_panic("[Error] Unable to load the boot device floppyb\n");
+        }
       }
     }
 



---------
Keep :-)
HanishKVC
http://www.hanishkvc.com/



Reply via email to