Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | \ ========== Copyright Header Begin ========================================== |
2 | \ | |
3 | \ Hypervisor Software File: loadmach.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 ============================================ | |
42 | id: @(#)loadmach.fth 1.13 03/07/17 | |
43 | copyright: Copyright 1991-1994 Firmworks All Rights Reserved | |
44 | copyright: Copyright 1994-2003 Sun Microsystems, Inc. All Rights Reserved | |
45 | copyright: Use is subject to license terms. | |
46 | ||
47 | [ifndef] assembler? transient [then] | |
48 | fload ${BP}/cpu/sparc/assem.fth | |
49 | fload ${BP}/cpu/sparc/asmmacro.fth | |
50 | fload ${BP}/cpu/sparc/code.fth | |
51 | fload ${BP}/fm/lib/loclabel.fth | |
52 | [ifndef] assembler? resident [then] | |
53 | ||
54 | warning on | |
55 | ||
56 | fload ${BP}/cpu/sparc/disforw.fth \ Exports (dis , pc , dis1 , +dis | |
57 | ||
58 | fload ${BP}/fm/lib/instdis.fth | |
59 | ||
60 | fload ${BP}/fm/lib/sparc/decompm.fth | |
61 | ||
62 | fload ${BP}/os/stand/sparc/notmeta.fth | |
63 | ||
64 | fload ${BP}/fm/lib/sparc/bitops.fth \ Used by allocpmeg.fth | |
65 | ||
66 | \ : be-l! ( l adr -- ) >r lbsplit r@ c! r@ 1+ c! r@ 2+ c! r> 3 + c! ; | |
67 | \ : be-l, ( l -- ) here set-swap-bit here 4 allot be-l! ; | |
68 | \ : be-l@ ( adr -- n ) >r r@ 3 + c@ r@ 2+ c@ r@ 1+ c@ r> c@ bljoin ; | |
69 | \ : be-w@ ( adr -- w ) dup 1+ c@ swap c@ bwjoin ; | |
70 | ||
71 | fload ${BP}/os/sun/nlist.fth \ Not transient; Used by symdebug.fth | |
72 | ||
73 | fload ${BP}/os/sun/elf.fth | |
74 | ||
75 | [ifdef] save-as-aout | |
76 | transient fload ${BP}/os/sun/symtab.fth resident | |
77 | transient fload ${BP}/os/sun/sparc/aout.fth resident | |
78 | [else] | |
79 | transient fload ${BP}/os/sun/sparc/elf.fth resident | |
80 | transient fload ${BP}/os/sun/elfsym.fth resident | |
81 | [then] | |
82 | ||
83 | transient fload ${BP}/os/sun/sparc/reloc.fth resident | |
84 | fload ${BP}/fm/lib/sparc/external.fth \ Uses does>; not transient | |
85 | transient fload ${BP}/os/sun/exports.fth resident | |
86 | ||
87 | transient fload ${BP}/fm/cwrapper/binhdr.fth resident | |
88 | transient fload ${BP}/fm/cwrapper/sparc/savefort.fth resident | |
89 | ||
90 | warning @ warning off alias save-forth save-forth warning ! | |
91 | ||
92 | fload ${BP}/cpu/sparc/doccall.fth \ Common code | |
93 | transient fload ${BP}/cpu/sparc/ccall.fth resident | |
94 | transient fload ${BP}/cpu/sparc/acall.fth resident | |
95 | ||
96 | \t16 fload ${BP}/fm/lib/sparc/debugm16.fth \ Forth debugger support | |
97 | \t32 fload ${BP}/fm/lib/sparc/debugm.fth \ Forth debugger support | |
98 | fload ${BP}/fm/lib/debug.fth \ Forth debugger | |
99 | ||
100 | 32\ fload ${BP}/cpu/sparc/traps.fth | |
101 | 64\ fload ${BP}/cpu/sparc/traps9.fth | |
102 | ||
103 | fload ${BP}/fm/lib/sparc/objsup.fth | |
104 | fload ${BP}/fm/lib/objects.fth | |
105 | fload ${BP}/fm/lib/action-primitives.fth | |
106 | ||
107 | fload ${BP}/cpu/sparc/cpustate.fth | |
108 | ||
109 | 32\ fload ${BP}/cpu/sparc/register.fth | |
110 | 32\ fload ${BP}/cpu/sparc/regv8.fth | |
111 | ||
112 | 64\ fload ${BP}/cpu/sparc/register9.fth | |
113 | ||
114 | fload ${BP}/fm/lib/savedstk.fth | |
115 | fload ${BP}/fm/lib/rstrace.fth | |
116 | fload ${BP}/fm/lib/sparc/ftrace.fth | |
117 | 32\ fload ${BP}/fm/lib/sparc/ctrace.fth | |
118 | 64\ fload ${BP}/fm/lib/sparc/ctrace9.fth | |
119 | ||
120 | 32\ fload ${BP}/cpu/sparc/asi.fth | |
121 | 64\ fload ${BP}/cpu/sparc/asi9.fth | |
122 | ||
123 | start-module \ Breakpointing | |
124 | fload ${BP}/fm/lib/sparc/cpubpsup.fth \ Breakpoint support | |
125 | fload ${BP}/fm/lib/breakpt.fth | |
126 | end-module | |
127 | ||
128 | [ifdef] unix-signals | |
129 | headerless | |
130 | window-registers | |
131 | alias lretval retval | |
132 | fload ${BP}/os/sun/sparc/signal.fth | |
133 | 32\ fload ${BP}/os/sun/sparc/catchexc.fth | |
134 | fload ${BP}/os/unix/sparc/arcbpsup.fth | |
135 | to window-registers | |
136 | headers | |
137 | [then] \ unix-signals | |
138 | ||
139 | fload ${BP}/cpu/sparc/memtest.fth | |
140 | ||
141 | fload ${BP}/os/sun/aout.fth | |
142 | ||
143 | 32\ fload ${BP}/cpu/sparc/fentry.fth | |
144 | 32\ transient fload ${BP}/os/sun/sparc/makecent.fth resident | |
145 | ||
146 | 64\ fload ${BP}/cpu/sparc/fentry9.fth | |
147 | 64\ transient fload ${BP}/os/sun/sparc/makecent9.fth resident | |
148 | ||
149 | fload ${BP}/cpu/sparc/call.fth | |
150 | 64\ fload ${BP}/cpu/sparc/call32.fth | |
151 | ||
152 | transient fload ${BP}/cpu/sparc/ccalls.fth resident | |
153 | ||
154 | fload ${BP}/fm/lib/sparc/dfill.fth \ Memory fill words | |
155 | fload ${BP}/fm/lib/sparc/lmove.fth |