1
/* cif.S: PROM entry/exit assembler trampolines.
3
* Copyright (C) 1996, 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
4
* Copyright (C) 2005, 2006 David S. Miller <davem@davemloft.net>
7
#include <asm/pstate.h>
8
#include <asm/cpudata.h>
9
#include <asm/thread_info.h>
12
.globl prom_cif_interface
14
sethi %hi(p1275buf), %o0
15
or %o0, %lo(p1275buf), %o0
16
ldx [%o0 + 0x010], %o1 ! prom_cif_stack
18
ldx [%i0 + 0x008], %l2 ! prom_cif_handler
23
add %i0, 0x018, %o0 ! prom_args
30
.globl prom_cif_callback
32
sethi %hi(p1275buf), %o1
33
or %o1, %lo(p1275buf), %o1
35
TRAP_LOAD_THREAD_REG(%g6, %g1)
36
LOAD_PER_CPU_BASE(%g5, %g6, %g4, %g3, %o0)
37
ldx [%g6 + TI_TASK], %g4
40
ldx [%i1 + 0x000], %l2