diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2017-07-13 13:09:46 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-23 02:22:48 (GMT) |
commit | 0819450fdd1160462f7a67af055618029857e204 (patch) | |
tree | db65186ef633e6066580af1dba9578890c97da34 /arch/powerpc/cpu/mpc83xx/traps.c | |
parent | 7a0a550c7f0cc1ca1e510c47c45e474122789bd6 (diff) | |
download | u-boot-fsl-qoriq-0819450fdd1160462f7a67af055618029857e204.tar.xz |
powerpc: get rid of addr_probe()
This function has never been used, at least since the beginning
of the git repository
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Diffstat (limited to 'arch/powerpc/cpu/mpc83xx/traps.c')
-rw-r--r-- | arch/powerpc/cpu/mpc83xx/traps.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/powerpc/cpu/mpc83xx/traps.c b/arch/powerpc/cpu/mpc83xx/traps.c index 3dd6900..f238d0b 100644 --- a/arch/powerpc/cpu/mpc83xx/traps.c +++ b/arch/powerpc/cpu/mpc83xx/traps.c @@ -215,30 +215,3 @@ void DebugException(struct pt_regs *regs) do_bedbug_breakpoint( regs ); #endif } - -/* Probe an address by reading. If not present, return -1, otherwise - * return 0. - */ -int addr_probe(uint *addr) -{ -#if 0 - int retval; - - __asm__ __volatile__( \ - "1: lwz %0,0(%1)\n" \ - " eieio\n" \ - " li %0,0\n" \ - "2:\n" \ - ".section .fixup,\"ax\"\n" \ - "3: li %0,-1\n" \ - " b 2b\n" \ - ".section __ex_table,\"a\"\n" \ - " .align 2\n" \ - " .long 1b,3b\n" \ - ".text" \ - : "=r" (retval) : "r"(addr)); - - return (retval); -#endif - return 0; -} |