@@ -86,6 +86,12 @@ core_param(alignment, ai_usermode, int, 0600);
#define UM_FIXUP (1 << 1)
#define UM_SIGNAL (1 << 2)
+/* Return true if and only if the ARMv6 unaligned access model is in use. */
+static bool cpu_is_v6_unaligned(void)
+{
+ return cpu_architecture() >= CPU_ARCH_ARMv6 && (cr_alignment & CR_U);
+}
+
#ifdef CONFIG_PROC_FS
static const char *usermode_action[] = {
"ignored",
@@ -96,12 +102,6 @@ static const char *usermode_action[] = {
"signal+warn"
};
-/* Return true if and only if the ARMv6 unaligned access model is in use. */
-static bool cpu_is_v6_unaligned(void)
-{
- return cpu_architecture() >= CPU_ARCH_ARMv6 && (cr_alignment & CR_U);
-}
-
static int safe_usermode(int new_usermode, bool warn)
{
/*