Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30647430 authored by Eugene Surovegin's avatar Eugene Surovegin Committed by Benjamin Herrenschmidt
Browse files

powerpc: Make ftrace endian-safe.

parent fed8393e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -174,7 +174,11 @@ __ftrace_make_nop(struct module *mod,

	pr_devel(" %08x %08x\n", jmp[0], jmp[1]);

#ifdef __LITTLE_ENDIAN__
	ptr = ((unsigned long)jmp[1] << 32) + jmp[0];
#else
	ptr = ((unsigned long)jmp[0] << 32) + jmp[1];
#endif

	/* This should match what was called */
	if (ptr != ppc_function_entry((void *)addr)) {