1
2
3
4
5
6
7
8
9
10#include <linux/init.h>
11#include <asm/asm-offsets.h>
12#include <asm/pal.h>
13#include <asm/setup.h>
14
15__HEAD
16.globl _stext
17 .set noreorder
18 .globl __start
19 .ent __start
20_stext:
21__start:
22 .prologue 0
23 br $27,1f
241: ldgp $29,0($27)
25
26 lda $8,init_thread_union
27
28 lda $30,0x4000 - SIZEOF_PT_REGS($8)
29
30 jsr $26,start_kernel
31 call_pal PAL_halt
32 .end __start
33
34#ifdef CONFIG_SMP
35 .align 3
36 .globl __smp_callin
37 .ent __smp_callin
38
39
40
41
42__smp_callin:
43 .prologue 1
44 ldgp $29,0($27)
45
46 call_pal PAL_rduniq
47 mov $0,$16
48 call_pal PAL_swpctx
49
50 lda $8,0x3fff
51 bic $30,$8,$8
52
53 jsr $26,smp_callin
54 call_pal PAL_halt
55 .end __smp_callin
56#endif
57
58
59
60
61
62
63
64 .align 3
65 .globl cserve_ena
66 .ent cserve_ena
67cserve_ena:
68 .prologue 0
69 bis $16,$16,$17
70 lda $16,52($31)
71 call_pal PAL_cserve
72 ret ($26)
73 .end cserve_ena
74
75 .align 3
76 .globl cserve_dis
77 .ent cserve_dis
78cserve_dis:
79 .prologue 0
80 bis $16,$16,$17
81 lda $16,53($31)
82 call_pal PAL_cserve
83 ret ($26)
84 .end cserve_dis
85
86
87
88
89
90
91
92 .align 3
93 .globl halt
94 .ent halt
95halt:
96 .prologue 0
97 call_pal PAL_halt
98 .end halt
99