~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/sparc/prom/cif.S

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /* cif.S: PROM entry/exit assembler trampolines.
  3  *
  4  * Copyright (C) 1996, 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
  5  * Copyright (C) 2005, 2006 David S. Miller <davem@davemloft.net>
  6  */
  7 
  8 #include <asm/pstate.h>
  9 #include <asm/cpudata.h>
 10 #include <asm/thread_info.h>
 11 
 12         .text
 13         .globl  prom_cif_direct
 14 prom_cif_direct:
 15         save    %sp, -192, %sp
 16         sethi   %hi(p1275buf), %o1
 17         or      %o1, %lo(p1275buf), %o1
 18         ldx     [%o1 + 0x0008], %l2     ! prom_cif_handler
 19         mov     %g4, %l0
 20         mov     %g5, %l1
 21         mov     %g6, %l3
 22         call    %l2
 23          mov    %i0, %o0                ! prom_args
 24         mov     %l0, %g4
 25         mov     %l1, %g5
 26         mov     %l3, %g6
 27         ret
 28          restore
 29 
 30         .globl  prom_cif_callback
 31 prom_cif_callback:
 32         sethi   %hi(p1275buf), %o1
 33         or      %o1, %lo(p1275buf), %o1
 34         save    %sp, -192, %sp
 35         TRAP_LOAD_THREAD_REG(%g6, %g1)
 36         LOAD_PER_CPU_BASE(%g5, %g6, %g4, %g3, %o0)
 37         ldx     [%g6 + TI_TASK], %g4
 38         call    prom_world
 39          mov    0, %o0
 40         ldx     [%i1 + 0x000], %l2
 41         call    %l2
 42          mov    %i0, %o0
 43         mov     %o0, %l1
 44         call    prom_world
 45          mov    1, %o0
 46         ret
 47          restore %l1, 0, %o0
 48 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php