|
@@ -74,6 +74,7 @@ ftrace_modify_code(unsigned long ip, unsigned int old, unsigned int new)
|
|
*/
|
|
*/
|
|
static int test_24bit_addr(unsigned long ip, unsigned long addr)
|
|
static int test_24bit_addr(unsigned long ip, unsigned long addr)
|
|
{
|
|
{
|
|
|
|
+ addr = ppc_function_entry((void *)addr);
|
|
|
|
|
|
/* use the create_branch to verify that this offset can be branched */
|
|
/* use the create_branch to verify that this offset can be branched */
|
|
return create_branch((unsigned int *)ip, addr, 0);
|
|
return create_branch((unsigned int *)ip, addr, 0);
|