Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / obp / obp / arch / sun4v / niagara / loadconfig.fth
CommitLineData
920dae64
AT
1\ ========== Copyright Header Begin ==========================================
2\
3\ Hypervisor Software File: loadconfig.fth
4\
5\ Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
6\
7\ - Do no alter or remove copyright notices
8\
9\ - Redistribution and use of this software in source and binary forms, with
10\ or without modification, are permitted provided that the following
11\ conditions are met:
12\
13\ - Redistribution of source code must retain the above copyright notice,
14\ this list of conditions and the following disclaimer.
15\
16\ - Redistribution in binary form must reproduce the above copyright notice,
17\ this list of conditions and the following disclaimer in the
18\ documentation and/or other materials provided with the distribution.
19\
20\ Neither the name of Sun Microsystems, Inc. or the names of contributors
21\ may be used to endorse or promote products derived from this software
22\ without specific prior written permission.
23\
24\ This software is provided "AS IS," without a warranty of any kind.
25\ ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
26\ INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
27\ PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
28\ MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
29\ ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
30\ DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
31\ OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
32\ FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
33\ DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
34\ ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
35\ SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
36\
37\ You acknowledge that this software is not designed, licensed or
38\ intended for use in the design, construction, operation or maintenance of
39\ any nuclear facility.
40\
41\ ========== Copyright Header End ============================================
42id: @(#)loadconfig.fth 1.7 07/02/12
43purpose:
44copyright: Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
45copyright: Use is subject to license terms.
46
47fload ${BP}/pkg/confvar/loadcvar.fth \ NVRAM device support
48fload ${BP}/pkg/confvar/definitions/standard.fth \ standard data types
49
50fload ${BP}/arch/sun4u/config/reset-recovery.fth
51
52fload ${BP}/pkg/confvar/definitions/confvoc/verbosity-types-voc.fth
53: verbosity-default ( -- adr,len ) " min" ;
54
55fload ${BP}/arch/sun4u/config/nvramrc.fth
56fload ${BP}/arch/sun4ju/columbus2/confstr-value-rst.fth
57
58\ Multipath boot supporting variables
590 config-int boot-device-index
60false config-flag multipath-boot?
61' boot-device-index
62" disk net" d# 256 config-string-with-value-reset boot-device
63" " d# 128 config-string boot-file
64" boot" d# 64 config-string boot-command
65" " d# 512 config-long-string network-boot-arguments
66
67true config-flag auto-boot?
68
69default-load-base config-int load-base
70
71false config-flag auto-boot-on-error?
72
73" virtual-console" d# 32 config-string input-device
74" virtual-console" d# 32 config-string output-device
75
76headers
77: virtual-console " /virtual-devices/console" ;
78headerless
79
80' virtual-console is fallback-device
81
82fload ${BP}/arch/sun4u/config/console.fth
83
84" 9600,8,n,1,-" d# 16 config-string ttya-mode
85
86fload ${BP}/arch/sun4u/config/termemu.fth
87fload ${BP}/arch/sun4u/config/banner.fth
88fload ${BP}/arch/sun4u/config/scsi-id.fth
89
90false config-flag fcode-debug?
91true config-flag local-mac-address?
92false config-flag diag-switch?
93false config-flag pci-mem64?
94
95verbosity-default ['] verbosity-types
96 vocab-variable verbosity
97
98 nodefault-int security-#badlogins
99
100d# 08 config-password: security-password
101
102 ['] security-mode-voc
103 nodefault-vocab-variable security-mode
104
105
106" " d# 256 config-string reboot-command \ FWARC/2006/086
107
108\ Install hook for fcode-debug?
109' fcode-debug? to (fcode-debug?)
110
111fload ${BP}/pkg/confvar/interfaces/standard.fth \ support consumers
112
113: set-mfg-defaults ( -- )
114 cmn-type[ " Setting diag-switch? NVRAM parameter to true" ]cmn-end
115 true to diag-switch?
116;
117' set-mfg-defaults is reset-config
118
119\ Give no-default variables a sane starting value here.
120\ Setting them here is slightly more backwards compatible. They will retain
121\ these values if unset, take the ldom-variable setting if set, but
122\ not be affected by set-defaults.
123stand-init: sanatize no-default ldom variables
124 0 to security-#badlogins
125 " none" " security-mode" $silent-setenv
126;
127