Print this page
XXX nobios

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/os/biosdisk.c
          +++ new/usr/src/uts/i86pc/os/biosdisk.c
↓ open down ↓ 29 lines elided ↑ open up ↑
  30   30  #include <sys/bootvfs.h>
  31   31  #include <sys/bootregs.h>
  32   32  #include <sys/bootconf.h>
  33   33  #include <sys/conf.h>
  34   34  #include <sys/promif.h>
  35   35  #include <sys/ddi.h>
  36   36  #include <sys/sunddi.h>
  37   37  #include <sys/sunndi.h>
  38   38  #include <sys/biosdisk.h>
  39   39  #include <sys/psw.h>
       40 +#include <sys/machsystm.h>
  40   41  #if defined(__xpv)
  41   42  #include <sys/hypervisor.h>
  42   43  #endif
  43   44  
  44   45  extern int prom_debug;
  45   46  
  46   47  /* hard code realmode memory address for now */
  47   48  #define BIOS_RES_BUFFER_ADDR            0x7000
  48   49  
  49   50  #define BIOSDEV_NUM     8
↓ open down ↓ 25 lines elided ↑ open up ↑
  75   76  void
  76   77  startup_bios_disk()
  77   78  {
  78   79          uchar_t drivenum;
  79   80          int got_devparams = 0;
  80   81          int got_first_block = 0;
  81   82          uchar_t name[20];
  82   83          dev_info_t      *devi;
  83   84          int extensions;
  84   85  
  85      -        if (dobiosdev == 0)
       86 +        if (dobiosdev == 0 || !bios_calls_available) {
       87 +                /*
       88 +                 * If BIOS calls have been disabled, or are not supported on
       89 +                 * this system, we cannot probe for the startup disk.
       90 +                 */
  86   91                  return;
       92 +        }
  87   93  
  88   94          for (drivenum = 0x80; drivenum < (0x80 + BIOSDEV_NUM); drivenum++) {
  89   95  
  90   96                  if (!drive_present(drivenum))
  91   97                          continue;
  92   98  
  93   99                  extensions = bios_check_extension_present(drivenum);
  94  100  
  95  101                  /*
  96  102                   * If we're booting from an Eltorito CD/DVD image, there's
↓ open down ↓ 232 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX