Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / obp / obp / os / sun / sparc / loadmach.fth
CommitLineData
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 ============================================
42id: @(#)loadmach.fth 1.13 03/07/17
43copyright: Copyright 1991-1994 Firmworks All Rights Reserved
44copyright: Copyright 1994-2003 Sun Microsystems, Inc. All Rights Reserved
45copyright: Use is subject to license terms.
46
47[ifndef] assembler? transient [then]
48fload ${BP}/cpu/sparc/assem.fth
49fload ${BP}/cpu/sparc/asmmacro.fth
50fload ${BP}/cpu/sparc/code.fth
51fload ${BP}/fm/lib/loclabel.fth
52[ifndef] assembler? resident [then]
53
54warning on
55
56fload ${BP}/cpu/sparc/disforw.fth \ Exports (dis , pc , dis1 , +dis
57
58fload ${BP}/fm/lib/instdis.fth
59
60fload ${BP}/fm/lib/sparc/decompm.fth
61
62fload ${BP}/os/stand/sparc/notmeta.fth
63
64fload ${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
71fload ${BP}/os/sun/nlist.fth \ Not transient; Used by symdebug.fth
72
73fload ${BP}/os/sun/elf.fth
74
75[ifdef] save-as-aout
76transient fload ${BP}/os/sun/symtab.fth resident
77transient fload ${BP}/os/sun/sparc/aout.fth resident
78[else]
79transient fload ${BP}/os/sun/sparc/elf.fth resident
80transient fload ${BP}/os/sun/elfsym.fth resident
81[then]
82
83transient fload ${BP}/os/sun/sparc/reloc.fth resident
84fload ${BP}/fm/lib/sparc/external.fth \ Uses does>; not transient
85transient fload ${BP}/os/sun/exports.fth resident
86
87transient fload ${BP}/fm/cwrapper/binhdr.fth resident
88transient fload ${BP}/fm/cwrapper/sparc/savefort.fth resident
89
90warning @ warning off alias save-forth save-forth warning !
91
92fload ${BP}/cpu/sparc/doccall.fth \ Common code
93transient fload ${BP}/cpu/sparc/ccall.fth resident
94transient 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
98fload ${BP}/fm/lib/debug.fth \ Forth debugger
99
10032\ fload ${BP}/cpu/sparc/traps.fth
10164\ fload ${BP}/cpu/sparc/traps9.fth
102
103fload ${BP}/fm/lib/sparc/objsup.fth
104fload ${BP}/fm/lib/objects.fth
105fload ${BP}/fm/lib/action-primitives.fth
106
107fload ${BP}/cpu/sparc/cpustate.fth
108
10932\ fload ${BP}/cpu/sparc/register.fth
11032\ fload ${BP}/cpu/sparc/regv8.fth
111
11264\ fload ${BP}/cpu/sparc/register9.fth
113
114fload ${BP}/fm/lib/savedstk.fth
115fload ${BP}/fm/lib/rstrace.fth
116fload ${BP}/fm/lib/sparc/ftrace.fth
11732\ fload ${BP}/fm/lib/sparc/ctrace.fth
11864\ fload ${BP}/fm/lib/sparc/ctrace9.fth
119
12032\ fload ${BP}/cpu/sparc/asi.fth
12164\ fload ${BP}/cpu/sparc/asi9.fth
122
123start-module \ Breakpointing
124fload ${BP}/fm/lib/sparc/cpubpsup.fth \ Breakpoint support
125fload ${BP}/fm/lib/breakpt.fth
126end-module
127
128[ifdef] unix-signals
129headerless
130window-registers
131alias lretval retval
132fload ${BP}/os/sun/sparc/signal.fth
13332\ fload ${BP}/os/sun/sparc/catchexc.fth
134fload ${BP}/os/unix/sparc/arcbpsup.fth
135to window-registers
136headers
137[then] \ unix-signals
138
139fload ${BP}/cpu/sparc/memtest.fth
140
141fload ${BP}/os/sun/aout.fth
142
14332\ fload ${BP}/cpu/sparc/fentry.fth
14432\ transient fload ${BP}/os/sun/sparc/makecent.fth resident
145
14664\ fload ${BP}/cpu/sparc/fentry9.fth
14764\ transient fload ${BP}/os/sun/sparc/makecent9.fth resident
148
149fload ${BP}/cpu/sparc/call.fth
15064\ fload ${BP}/cpu/sparc/call32.fth
151
152transient fload ${BP}/cpu/sparc/ccalls.fth resident
153
154fload ${BP}/fm/lib/sparc/dfill.fth \ Memory fill words
155fload ${BP}/fm/lib/sparc/lmove.fth