517 /*
518 * The physical system's host identifier, expressed as a decimal string.
519 * Code should only directly access this value when writing to it (setting the
520 * physical system's host identifier). Code that reads the physical system's
521 * host identifier should use zone_get_hostid(NULL) instead.
522 */
523 char hw_serial[HW_HOSTID_LEN] = "0";
524
525 #if defined(__sparc)
526
527 /*
528 * On sparc machines, read hw_serial from the firmware at boot time
529 * and simply assert Oracle is the hardware provider.
530 */
531 char architecture[] = "sparcv9";
532 char architecture_32[] = "sparc";
533 char hw_provider[] = "Oracle Corporation";
534
535 #elif defined(__i386)
536
537 /*
538 * On x86 machines, read hw_serial, hw_provider and srpc_domain from
539 * /etc/bootrc at boot time.
540 */
541 char architecture[] = "i386";
542 char architecture_32[] = "i386";
543 char hw_provider[SYS_NMLN] = "";
544
545 #elif defined(__amd64)
546
547 /*
548 * On amd64 machines, read hw_serial, hw_provider and srpc_domain from
549 * /etc/bootrc at boot time.
550 */
551 char architecture[] = "amd64";
552 char architecture_32[] = "i386";
553 char hw_provider[SYS_NMLN] = "";
554
555 #else
556 #error "unknown processor architecture"
557 #endif
558
559 char srpc_domain[SYS_NMLN] = "";
560 char platform[SYS_NMLN] = ""; /* read from the devinfo root node */
561
562 /* Initialize isa_list */
563 char *isa_list = architecture;
564
565 static pgcnt_t original_physmem = 0;
566
567 #define MIN_DEFAULT_MAXUSERS 8u
568 #define MAX_DEFAULT_MAXUSERS 2048u
569 #define MAX_MAXUSERS 4096u
570
|
517 /*
518 * The physical system's host identifier, expressed as a decimal string.
519 * Code should only directly access this value when writing to it (setting the
520 * physical system's host identifier). Code that reads the physical system's
521 * host identifier should use zone_get_hostid(NULL) instead.
522 */
523 char hw_serial[HW_HOSTID_LEN] = "0";
524
525 #if defined(__sparc)
526
527 /*
528 * On sparc machines, read hw_serial from the firmware at boot time
529 * and simply assert Oracle is the hardware provider.
530 */
531 char architecture[] = "sparcv9";
532 char architecture_32[] = "sparc";
533 char hw_provider[] = "Oracle Corporation";
534
535 #elif defined(__i386)
536
537 char architecture[] = "i386";
538 char architecture_32[] = "i386";
539 char hw_provider[SYS_NMLN] = "";
540
541 #elif defined(__amd64)
542
543 char architecture[] = "amd64";
544 char architecture_32[] = "i386";
545 char hw_provider[SYS_NMLN] = "";
546
547 #else
548 #error "unknown processor architecture"
549 #endif
550
551 char srpc_domain[SYS_NMLN] = "";
552 char platform[SYS_NMLN] = ""; /* read from the devinfo root node */
553
554 /* Initialize isa_list */
555 char *isa_list = architecture;
556
557 static pgcnt_t original_physmem = 0;
558
559 #define MIN_DEFAULT_MAXUSERS 8u
560 #define MAX_DEFAULT_MAXUSERS 2048u
561 #define MAX_MAXUSERS 4096u
562
|