Print this page
11630 remove checks for 64-bit capable hardware

Split Close
Expand all
Collapse all
          --- old/usr/src/psm/stand/boot/sparc/common/boot_plat.c
          +++ new/usr/src/psm/stand/boot/sparc/common/boot_plat.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + * Copyright 2019 Peter Tribbble.
  24   25   */
  25   26  
  26   27  #include <sys/param.h>
  27   28  #include <sys/fcntl.h>
  28   29  #include <sys/obpdefs.h>
  29   30  #include <sys/reboot.h>
  30   31  #include <sys/promif.h>
  31   32  #include <sys/stat.h>
  32   33  #include <sys/bootvfs.h>
  33   34  #include <sys/platnames.h>
↓ open down ↓ 412 lines elided ↑ open up ↑
 446  447                   * Convert slice number to partition 'letter'.
 447  448                   */
 448  449                  *p++ = 'a' + slicec - '0';
 449  450                  *p = '\0';
 450  451                  v2path = bpath;
 451  452                  return;
 452  453          }
 453  454          prom_panic("redirect_boot_path: mangled boot path!");
 454  455  }
 455  456  
 456      -#define PROM_VERS_MAX_LEN       64
 457      -
 458  457  void
 459  458  system_check(void)
 460  459  {
 461      -        char buf[PROM_VERS_MAX_LEN];
 462  460          pnode_t n;
 463  461          char    arch[128];
 464  462          size_t  len;
 465  463          bootplat_defaults_t *plat_defaults;
 466  464  
 467  465          /*
 468  466           * This is a sun4v machine iff the device_type property
 469  467           * exists on the root node and has the value "sun4v".
 470  468           * Some older sunfire proms do not have such a property.
 471  469           */
↓ open down ↓ 4 lines elided ↑ open up ↑
 476  474                  (void) prom_getprop(n, "device_type", arch);
 477  475                  arch[len] = '\0';
 478  476                  dprintf("device_type=%s\n", arch);
 479  477                  if (strcmp(arch, "sun4v") == 0) {
 480  478                          is_sun4v = 1;
 481  479                  }
 482  480          } else {
 483  481                  dprintf("device_type: no such property, len=%d\n", (int)len);
 484  482          }
 485  483  
 486      -        if (!is_sun4v && cpu_is_ultrasparc_1()) {
 487      -                printf("UltraSPARC I processors are not supported by this "
 488      -                    "release of Solaris.\n");
 489      -                prom_exit_to_mon();
 490      -        }
 491      -
 492  484          /*
 493  485           * Set up defaults per platform
 494  486           */
 495  487          plat_defaults = (is_sun4v) ?
 496  488              &sun4v_plat_defaults : &sun4u_plat_defaults;
 497  489  
 498  490          default_name = plat_defaults->plat_defaults_name;
 499  491          default_path = plat_defaults->plat_defaults_path;
 500  492          vac = plat_defaults->plat_defaults_vac;
 501  493  
 502  494          dprintf("default_name: %s\n", default_name);
 503  495          dprintf("default_path: %s\n", default_path);
 504  496          dprintf("vac: %d\n", vac);
 505      -
 506      -        if (prom_version_check(buf, PROM_VERS_MAX_LEN, NULL) != PROM_VER64_OK) {
 507      -                printf("The firmware on this system does not support the 64-bit"
 508      -                    " OS.\n\tPlease upgrade to at least the following version:"
 509      -                    "\n\n\t%s\n", buf);
 510      -                prom_exit_to_mon();
 511      -        }
 512  497  }
 513  498  
 514  499  /*
 515  500   * Reads in the standalone (client) program and jumps to it.  If this
 516  501   * attempt fails, prints "boot failed" and returns to its caller.
 517  502   *
 518  503   * It will try to determine if it is loading a Unix file by
 519  504   * looking at what should be the magic number.  If it makes
 520  505   * sense, it will use it; otherwise it jumps to the first
 521  506   * address of the blocks that it reads in.
↓ open down ↓ 122 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX