Lines Matching +full:0 +full:- +full:128
1 /* SPDX-License-Identifier: GPL-2.0 */
39 * 0x0000000000404000 to 0x0000000000408000.
47 ! 0x0000000000404000
64 * 0x0300 : Supports being located at other than 0x4000
65 * 0x0202 : Supports kernel params string
66 * 0x0201 : Supports reboot_command
68 .half 0x0301 /* HdrS version */
73 .half 0
75 .half 0
77 .word 0
79 .word 0
83 .xword 0
93 * SILO can invoke us with 32-bit address masking enabled,
98 wrpr %g1, 0x0, %pstate
125 .asciz "call-method"
133 .asciz "SUNW,set-trap-table"
137 .asciz "SUNW,UltraSPARC-T"
139 .asciz "SPARC-"
141 .asciz "SPARC64-X"
148 .word 0
151 .word 0
153 .word 0
155 .word 0
158 .xword 0
160 .xword 0
162 .word 0
169 mov (1b - prom_peer_name), %l1
171 mov 0, %l2
173 /* prom_root_node = prom_peer(0) */
174 stx %l1, [%sp + 2047 + 128 + 0x00] ! service, "peer"
176 stx %l3, [%sp + 2047 + 128 + 0x08] ! num_args, 1
177 stx %l3, [%sp + 2047 + 128 + 0x10] ! num_rets, 1
178 stx %l2, [%sp + 2047 + 128 + 0x18] ! arg1, 0
179 stx %g0, [%sp + 2047 + 128 + 0x20] ! ret1
181 add %sp, (2047 + 128), %o0 ! argument array
183 ldx [%sp + 2047 + 128 + 0x20], %l4 ! prom root node
184 mov (1b - prom_root_node), %l1
188 mov (1b - prom_getprop_name), %l1
189 mov (1b - prom_compatible_name), %l2
190 mov (1b - prom_root_compatible), %l5
198 stx %l1, [%sp + 2047 + 128 + 0x00] ! service, "getprop"
200 stx %l3, [%sp + 2047 + 128 + 0x08] ! num_args, 4
202 stx %l3, [%sp + 2047 + 128 + 0x10] ! num_rets, 1
203 stx %l4, [%sp + 2047 + 128 + 0x18] ! arg1, prom_root_node
204 stx %l2, [%sp + 2047 + 128 + 0x20] ! arg2, "compatible"
205 stx %l5, [%sp + 2047 + 128 + 0x28] ! arg3, &prom_root_compatible
207 stx %l3, [%sp + 2047 + 128 + 0x30] ! arg4, size
208 stx %g0, [%sp + 2047 + 128 + 0x38] ! ret1
210 add %sp, (2047 + 128), %o0 ! argument array
212 mov (1b - prom_finddev_name), %l1
213 mov (1b - prom_chosen_path), %l2
214 mov (1b - prom_boot_mapped_pc), %l3
219 sub %sp, (192 + 128), %sp
222 stx %l1, [%sp + 2047 + 128 + 0x00] ! service, "finddevice"
224 stx %l3, [%sp + 2047 + 128 + 0x08] ! num_args, 1
225 stx %l3, [%sp + 2047 + 128 + 0x10] ! num_rets, 1
226 stx %l2, [%sp + 2047 + 128 + 0x18] ! arg1, "/chosen"
227 stx %g0, [%sp + 2047 + 128 + 0x20] ! ret1
229 add %sp, (2047 + 128), %o0 ! argument array
231 ldx [%sp + 2047 + 128 + 0x20], %l4 ! chosen device node
233 mov (1b - prom_getprop_name), %l1
234 mov (1b - prom_mmu_name), %l2
235 mov (1b - prom_mmu_ihandle_cache), %l5
241 stx %l1, [%sp + 2047 + 128 + 0x00] ! service, "getprop"
243 stx %l3, [%sp + 2047 + 128 + 0x08] ! num_args, 4
245 stx %l3, [%sp + 2047 + 128 + 0x10] ! num_rets, 1
246 stx %l4, [%sp + 2047 + 128 + 0x18] ! arg1, chosen_node
247 stx %l2, [%sp + 2047 + 128 + 0x20] ! arg2, "mmu"
248 stx %l5, [%sp + 2047 + 128 + 0x28] ! arg3, &prom_mmu_ihandle_cache
250 stx %l3, [%sp + 2047 + 128 + 0x30] ! arg4, sizeof(arg3)
251 stx %g0, [%sp + 2047 + 128 + 0x38] ! ret1
253 add %sp, (2047 + 128), %o0 ! argument array
255 mov (1b - prom_callmethod_name), %l1
256 mov (1b - prom_translate_name), %l2
261 stx %l1, [%sp + 2047 + 128 + 0x00] ! service, "call-method"
263 stx %l3, [%sp + 2047 + 128 + 0x08] ! num_args, 3
265 stx %l3, [%sp + 2047 + 128 + 0x10] ! num_rets, 5
266 stx %l2, [%sp + 2047 + 128 + 0x18] ! arg1: "translate"
267 stx %l5, [%sp + 2047 + 128 + 0x20] ! arg2: prom_mmu_ihandle_cache
271 stx %l3, [%sp + 2047 + 128 + 0x28] ! arg3: vaddr, our PC
272 stx %g0, [%sp + 2047 + 128 + 0x30] ! res1
273 stx %g0, [%sp + 2047 + 128 + 0x38] ! res2
274 stx %g0, [%sp + 2047 + 128 + 0x40] ! res3
275 stx %g0, [%sp + 2047 + 128 + 0x48] ! res4
276 stx %g0, [%sp + 2047 + 128 + 0x50] ! res5
278 add %sp, (2047 + 128), %o0 ! argument array
280 ldx [%sp + 2047 + 128 + 0x40], %l1 ! translation mode
281 mov (1b - prom_boot_mapping_mode), %l4
284 mov (1b - prom_boot_mapping_phys_high), %l4
286 ldx [%sp + 2047 + 128 + 0x48], %l2 ! physaddr high
287 stx %l2, [%l4 + 0x0]
288 ldx [%sp + 2047 + 128 + 0x50], %l3 ! physaddr low
292 stx %l3, [%l4 + 0x8]
294 /* Leave service as-is, "call-method" */
296 stx %l3, [%sp + 2047 + 128 + 0x08] ! num_args, 7
298 stx %l3, [%sp + 2047 + 128 + 0x10] ! num_rets, 1
299 mov (1b - prom_map_name), %l3
301 stx %l3, [%sp + 2047 + 128 + 0x18] ! arg1: "map"
302 /* Leave arg2 as-is, prom_mmu_ihandle_cache */
303 mov -1, %l3
304 stx %l3, [%sp + 2047 + 128 + 0x28] ! arg3: mode (-1 default)
306 set (_end - KERNBASE), %l3
307 set ((4 * 1024 * 1024) - 1), %l4
310 stx %l3, [%sp + 2047 + 128 + 0x30] ! arg4: roundup(ksize, 4MB)
312 stx %l3, [%sp + 2047 + 128 + 0x38] ! arg5: vaddr (KERNBASE)
313 stx %g0, [%sp + 2047 + 128 + 0x40] ! arg6: empty
314 mov (1b - prom_boot_mapping_phys_low), %l3
317 stx %l3, [%sp + 2047 + 128 + 0x48] ! arg7: phys addr
319 add %sp, (2047 + 128), %o0 ! argument array
321 add %sp, (192 + 128), %sp
343 mov (1b - prom_finddev_name), %l1
344 mov (1b - prom_cpu_path), %l2
347 sub %sp, (192 + 128), %sp
349 stx %l1, [%sp + 2047 + 128 + 0x00] ! service, "finddevice"
351 stx %l3, [%sp + 2047 + 128 + 0x08] ! num_args, 1
352 stx %l3, [%sp + 2047 + 128 + 0x10] ! num_rets, 1
353 stx %l2, [%sp + 2047 + 128 + 0x18] ! arg1, "/cpu"
354 stx %g0, [%sp + 2047 + 128 + 0x20] ! ret1
356 add %sp, (2047 + 128), %o0 ! argument array
358 ldx [%sp + 2047 + 128 + 0x20], %l4 ! cpu device node
360 mov (1b - prom_getprop_name), %l1
361 mov (1b - prom_compatible_name), %l2
362 mov (1b - prom_cpu_compatible), %l5
370 stx %l1, [%sp + 2047 + 128 + 0x00] ! service, "getprop"
372 stx %l3, [%sp + 2047 + 128 + 0x08] ! num_args, 4
374 stx %l3, [%sp + 2047 + 128 + 0x10] ! num_rets, 1
375 stx %l4, [%sp + 2047 + 128 + 0x18] ! arg1, cpu_node
376 stx %l2, [%sp + 2047 + 128 + 0x20] ! arg2, "compatible"
377 stx %l5, [%sp + 2047 + 128 + 0x28] ! arg3, &prom_cpu_compatible
379 stx %l3, [%sp + 2047 + 128 + 0x30] ! arg4, size
380 stx %g0, [%sp + 2047 + 128 + 0x38] ! ret1
382 add %sp, (2047 + 128), %o0 ! argument array
384 add %sp, (192 + 128), %sp
527 /* Typically PROM has already enabled both MMU's and both on-chip
544 wr %g0, 0, %fprs
554 /* Set ctx 0 */
566 /* Set ctx 0 */
697 mov 0, %g2
712 /* Set per-cpu pointer initially to zero, this makes
713 * the boot-cpu use the in-kernel-image per-cpu areas
718 wrpr %g0, 0, %wstate
719 wrpr %g0, 0x0, %tl
732 /* To create a one-register-window buffer between the kernel's
763 save %sp, -192, %sp
768 wrpr %o1, 0x0, %pstate
784 * paddr = kern_base + (mmfsa_vaddr - KERNBASE)
794 stx %g2, [%sp + 2047 + 128 + 0x00]
796 stx %g2, [%sp + 2047 + 128 + 0x08]
797 mov 0, %g2
798 stx %g2, [%sp + 2047 + 128 + 0x10]
799 stx %o0, [%sp + 2047 + 128 + 0x18]
800 stx %o1, [%sp + 2047 + 128 + 0x20]
803 ldx [%g2 + 0x08], %o1
805 add %sp, (2047 + 128), %o0
811 stx %g2, [%sp + 2047 + 128 + 0x00]
813 stx %g2, [%sp + 2047 + 128 + 0x08]
814 mov 0, %g2
815 stx %g2, [%sp + 2047 + 128 + 0x10]
816 stx %o0, [%sp + 2047 + 128 + 0x18]
819 ldx [%g2 + 0x08], %o1
821 add %sp, (2047 + 128), %o0
840 sethi %hi(0x80000000), %o2
842 wr %o2, 0, %tick_cmpr
850 sethi %hi(0x80000000), %o2
861 wrpr %l0, 0, %pstate
862 wrpr %l1, 0x0, %pil
869 save %sp, -192, %sp
913 .skip 0x4000 + _start - 1b
915 ! 0x0000000000408000
925 ! 0x0000000000420000
931 * Those instructions can only handle a signed 16-bit
942 ! 0x0000000000428000
950 prom_tba: .xword 0
951 tlb_type: .word 0 /* Must NOT end up in BSS */
957 mov -EFAULT, %o0
966 wr %o5, 0x0, %asi