wrl.tcl
1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#
# Copyright (C) 1998 by the Board of Trustees
# of Leland Stanford Junior University.
# Copyright (C) 1998 Digital Equipment Corporation
#
# This file is part of the SimOS distribution.
# See LICENSE file for terms of the license.
#
####
#### configuration files for setup at WRL
#### This information is not Digital confidential, it
#### is just useless if you are not working from WRL
#### --Ed
####
#### This file to be sourced after defaults.tcl
#### diskFileName($disk) must be defined for
#### disks 3 and up.
FileSourced "wrl.tcl"
if [info exists env(SIMOS_DIR)] {
set wrlDirectory $env(SIMOS_DIR)
} else {
set wrlDirectory /wrl/proj/simos/support-files
}
console "wrlDirectory=$wrlDirectory\n"
set PARAM(ALPHA.Files.PALCode) "$wrlDirectory/runtime-files/osfpal"
set PARAM(ALPHA.Files.Console) "$wrlDirectory/runtime-files/console"
set PARAM(ALPHA.Files.Kernel) "$wrlDirectory/runtime-files/vmunix"
set bdoorExecutable "$wrlDirectory/runtime-files/bdoor-osf-static"
set diskFileName(1) "$wrlDirectory/disks/root-disk"
proc DiskFileName { machine node ctrl disk } {
global wrlDirectory diskFileName
if [catch {
if {($machine != 0) || ($node!=0) || ($ctrl !=0) } {
console "apps/tcl/osf/wrl.tcl::DiskFileName machine=$machine node=$node ctrl=$ctrl wierd \n"
exit
}
if [info exists diskFileName($disk)] {
set f $diskFileName($disk)
} else {
###
### not that NOTDEF() is a keyword for the rmtaccess server
###
set f "NOTDEF($disk)"
}
} msg ] {
console "Error in DiskFileName $msg \n"
exit
}
return $f
}
proc WrlDiskFileName { disk } {
console "WrlDiskFileName called for disk $disk \n"
console "This function is defined in apps/tcl/osf/wrl.tcl\n"
console "Must be overriden in init.simos after sourcing wrl.tcl\n"
exit
}