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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4/os/startup.c
          +++ new/usr/src/uts/sun4/os/startup.c
↓ open down ↓ 268 lines elided ↑ open up ↑
 269  269  static struct memlist *memlist;
 270  270  void *memlist_end;
 271  271  
 272  272  static pgcnt_t bop_alloc_pages;
 273  273  static caddr_t hblk_base;
 274  274  uint_t hblk_alloc_dynamic = 0;
 275  275  uint_t hblk1_min = H1MIN;
 276  276  
 277  277  
 278  278  /*
 279      - * Hook for down-rev firmware
 280      - */
 281      -static void do_prom_version_check(void);
 282      -
 283      -/*
 284  279   * After receiving a thermal interrupt, this is the number of seconds
 285  280   * to delay before shutting off the system, assuming
 286  281   * shutdown fails.  Use /etc/system to change the delay if this isn't
 287  282   * large enough.
 288  283   */
 289  284  int thermal_powerdown_delay = 1200;
 290  285  
 291  286  /*
 292  287   * Used to hold off page relocations into the cage until OBP has completed
 293  288   * its boot-time handoff of its resources to the kernel.
↓ open down ↓ 1216 lines elided ↑ open up ↑
1510 1505  
1511 1506          /*
1512 1507           * Calculate default settings of system parameters based upon
1513 1508           * maxusers, yet allow to be overridden via the /etc/system file.
1514 1509           */
1515 1510          param_calc(0);
1516 1511  
1517 1512          mod_setup();
1518 1513  
1519 1514          /*
1520      -         * If we are running firmware that isn't 64-bit ready
1521      -         * then complain and halt.
1522      -         */
1523      -        do_prom_version_check();
1524      -
1525      -        /*
1526 1515           * Initialize system parameters
1527 1516           */
1528 1517          param_init();
1529 1518  
1530 1519          /*
1531 1520           * maxmem is the amount of physical memory we're playing with.
1532 1521           */
1533 1522          maxmem = physmem;
1534 1523  
1535 1524          /* Set segkp limits. */
↓ open down ↓ 1545 lines elided ↑ open up ↑
3081 3070   * configures a kernel console framebuffer as the standard output
3082 3071   * device, OBP's stdout is switched to to vector through the
3083 3072   * /os-io node into the kernel terminal emulator.
3084 3073   */
3085 3074  static void
3086 3075  startup_create_io_node(void)
3087 3076  {
3088 3077          prom_interpret(create_node, 0, 0, 0, 0, 0);
3089 3078  }
3090 3079  
3091      -
3092      -static void
3093      -do_prom_version_check(void)
3094      -{
3095      -        int i;
3096      -        pnode_t node;
3097      -        char buf[64];
3098      -        static char drev[] = "Down-rev firmware detected%s\n"
3099      -            "\tPlease upgrade to the following minimum version:\n"
3100      -            "\t\t%s\n";
3101      -
3102      -        i = prom_version_check(buf, sizeof (buf), &node);
3103      -
3104      -        if (i == PROM_VER64_OK)
3105      -                return;
3106      -
3107      -        if (i == PROM_VER64_UPGRADE) {
3108      -                cmn_err(CE_WARN, drev, "", buf);
3109      -
3110      -#ifdef  DEBUG
3111      -                prom_enter_mon();       /* Type 'go' to continue */
3112      -                cmn_err(CE_WARN, "Booting with down-rev firmware\n");
3113      -                return;
3114      -#else
3115      -                halt(0);
3116      -#endif
3117      -        }
3118      -
3119      -        /*
3120      -         * The other possibility is that this is a server running
3121      -         * good firmware, but down-rev firmware was detected on at
3122      -         * least one other cpu board. We just complain if we see
3123      -         * that.
3124      -         */
3125      -        cmn_err(CE_WARN, drev, " on one or more CPU boards", buf);
3126      -}
3127      -
3128 3080  
3129 3081  /*
3130 3082   * Must be defined in platform dependent code.
3131 3083   */
3132 3084  extern caddr_t modtext;
3133 3085  extern size_t modtext_sz;
3134 3086  extern caddr_t moddata;
3135 3087  
3136 3088  #define HEAPTEXT_ARENA(addr)    \
3137 3089          ((uintptr_t)(addr) < KERNELBASE + 2 * MMU_PAGESIZE4M ? 0 : \
↓ open down ↓ 156 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX