Commit 60e5da62 authored by Helge Deller's avatar Helge Deller

sections.h: dereference_function_descriptor() returns void pointer

The function dereference_function_descriptor() takes on hppa64, ppc64
and ia64 a pointer to a function descriptor and returns a (void) pointer
to the dereferenced function.
To make cross-arch coding easier, on all other architectures the
dereference_function_descriptor() macro should return a void pointer
too.
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent bcf87687
...@@ -60,8 +60,8 @@ extern __visible const void __nosave_begin, __nosave_end; ...@@ -60,8 +60,8 @@ extern __visible const void __nosave_begin, __nosave_end;
/* Function descriptor handling (if any). Override in asm/sections.h */ /* Function descriptor handling (if any). Override in asm/sections.h */
#ifndef dereference_function_descriptor #ifndef dereference_function_descriptor
#define dereference_function_descriptor(p) (p) #define dereference_function_descriptor(p) ((void *)(p))
#define dereference_kernel_function_descriptor(p) (p) #define dereference_kernel_function_descriptor(p) ((void *)(p))
#endif #endif
/* random extra sections (if any). Override /* random extra sections (if any). Override
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment