提交 0819450f 编写于 作者: C Christophe Leroy 提交者: Tom Rini

powerpc: get rid of addr_probe()

This function has never been used, at least since the beginning
of the git repository
Signed-off-by: NChristophe Leroy <christophe.leroy@c-s.fr>
上级 7a0a550c
......@@ -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;
}
......@@ -286,11 +286,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)
{
return 0;
}
......@@ -195,13 +195,3 @@ void UnknownException(struct pt_regs *regs)
regs->nip, regs->msr, regs->trap);
_exception(0, regs);
}
/*
* Probe an address by reading.
* If not present, return -1,
* otherwise return 0.
*/
int addr_probe(uint *addr)
{
return 0;
}
......@@ -155,11 +155,3 @@ void DebugException(struct pt_regs *regs)
printf("Debugger trap at @ %lx\n", regs->nip);
show_regs(regs);
}
/* Probe an address by reading. If not present, return -1, otherwise
* return 0.
*/
int addr_probe(uint *addr)
{
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册