|
@@ -27,6 +27,8 @@ extern char __start_gate_brl_fsys_bubble_down_patchlist[], __end_gate_brl_fsys_b
|
|
|
extern char __start_unwind[], __end_unwind[];
|
|
|
extern char __start_ivt_text[], __end_ivt_text[];
|
|
|
|
|
|
+#define HAVE_DEREFERENCE_FUNCTION_DESCRIPTOR 1
|
|
|
+
|
|
|
#undef dereference_function_descriptor
|
|
|
static inline void *dereference_function_descriptor(void *ptr)
|
|
|
{
|
|
@@ -38,6 +40,12 @@ static inline void *dereference_function_descriptor(void *ptr)
|
|
|
return ptr;
|
|
|
}
|
|
|
|
|
|
+#undef dereference_kernel_function_descriptor
|
|
|
+static inline void *dereference_kernel_function_descriptor(void *ptr)
|
|
|
+{
|
|
|
+ if (ptr < (void *)__start_opd || ptr >= (void *)__end_opd)
|
|
|
+ return ptr;
|
|
|
+ return dereference_function_descriptor(ptr);
|
|
|
+}
|
|
|
|
|
|
#endif /* _ASM_IA64_SECTIONS_H */
|
|
|
-
|