source: XOpenSparcT1/trunk/sw/boot.S @ 36

Revision 36, 749 bytes checked in by pntsvt00, 13 years ago (diff)

modificati i file per la compilazione. boot.s linkato a 0xFFF0000020

Line 
1#include <sys/asm_linkage.h>
2 
3#include <hcall.h>
4#include <config.h>
5
6#define MINFRAME64 0xb0
7#define V9BIAS64 0xb0
8
9.global __setup
10.extern sal_main
11
12.section ".boot", "ax"
13
14__setup:
15        wrpr   %g0, 7, %cleanwin
16        wrpr   %g0, 0, %otherwin
17        wrpr   %g0, 0, %wstate
18        wrpr   %g0, 0, %canrestore
19        wrpr   %g0, 6, %cansave
20        wrpr   %g0, 0, %cwp
21        mov    %g0, %sp
22        mov    %g0, %fp
23
24        setsw    (0x010000000), %fp
25        setsw    (0x020000000), %sp
26
27        mov    %g0, %y
28        mov    %g0, %o0
29        mov    %g0, %o1
30        mov    %g0, %o2
31        mov    %g0, %o3
32        mov    %g0, %o4
33        mov    %g0, %o5
34
35        !wrpr   %g0, 0, %gl
36        !wrpr   %g0, 0, %tl
37
38        call   sal_main
39        nop
Note: See TracBrowser for help on using the repository browser.