Thread (25 messages) 25 messages, 4 authors, 2017-10-23

Re: [PATCHv3 4/7] powerpc64: Add .opd based function descriptor dereference

flat view

From: Sergey Senozhatsky <hidden>
Date: 2017-10-19 06:45:11
Also in: lkml

On (10/04/17 11:21), Petr Mladek wrote:
[..]
quoted
+#ifdef PPC64_ELF_ABI_v1
+unsigned long dereference_module_function_descriptor(struct module *mod,
+						     unsigned long addr)
+{
+	if (addr < mod->arch.start_opd || addr >= mod->arch.end_opd)
+		return addr;
+
+	return dereference_function_descriptor(addr);
+}
+#endif /* PPC64_ELF_ABI_v1 */
I would personally move this up in the source file. It is related to
the definition of func_desc() and other functions that are
also PPC_ELF_ABI-specific.

Otherwise, it looks good to me.

Reviewed-by: Petr Mladek <pmladek@suse.com>
OK, will move.

	-ss
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help