Print this page
XXX nobios

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/os/mlsetup.c
          +++ new/usr/src/uts/i86pc/os/mlsetup.c
↓ open down ↓ 79 lines elided ↑ open up ↑
  80   80  extern uint32_t cpuid_feature_edx_exclude;
  81   81  
  82   82  /*
  83   83   * Set console mode
  84   84   */
  85   85  static void
  86   86  set_console_mode(uint8_t val)
  87   87  {
  88   88          struct bop_regs rp = {0};
  89   89  
       90 +        if (!bios_calls_available)
       91 +                return;
       92 +
  90   93          rp.eax.byte.ah = 0x0;
  91   94          rp.eax.byte.al = val;
  92   95          rp.ebx.word.bx = 0x0;
  93   96  
  94   97          BOP_DOINT(bootops, 0x10, &rp);
  95   98  }
  96   99  
  97  100  
  98  101  /*
  99  102   * Setup routine called right before main(). Interposing this function
↓ open down ↓ 417 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX