aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/include/asm/system_64.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/include/asm/system_64.h')
-rw-r--r--arch/sh/include/asm/system_64.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/include/asm/system_64.h b/arch/sh/include/asm/system_64.h
index 943acf5ea07..218b54d9d66 100644
--- a/arch/sh/include/asm/system_64.h
+++ b/arch/sh/include/asm/system_64.h
@@ -37,4 +37,9 @@ do { \
#define jump_to_uncached() do { } while (0)
#define back_to_cached() do { } while (0)
+static inline reg_size_t register_align(void *val)
+{
+ return (unsigned long long)(signed long long)(signed long)val;
+}
+
#endif /* __ASM_SH_SYSTEM_64_H */