|
@@ -22,9 +22,9 @@ static __always_inline bool arch_static_branch(struct static_key *key, bool bran
|
|
|
".byte " __stringify(STATIC_KEY_INIT_NOP) "\n\t"
|
|
|
".pushsection __jump_table, \"aw\" \n\t"
|
|
|
_ASM_ALIGN "\n\t"
|
|
|
- _ASM_PTR "1b, %l[l_yes], %c0 \n\t"
|
|
|
+ _ASM_PTR "1b, %l[l_yes], %c0 + %c1 \n\t"
|
|
|
".popsection \n\t"
|
|
|
- : : "i" (&((char *)key)[branch]) : : l_yes);
|
|
|
+ : : "i" (key), "i" (branch) : : l_yes);
|
|
|
|
|
|
return false;
|
|
|
l_yes:
|
|
@@ -38,9 +38,9 @@ static __always_inline bool arch_static_branch_jump(struct static_key *key, bool
|
|
|
"2:\n\t"
|
|
|
".pushsection __jump_table, \"aw\" \n\t"
|
|
|
_ASM_ALIGN "\n\t"
|
|
|
- _ASM_PTR "1b, %l[l_yes], %c0 \n\t"
|
|
|
+ _ASM_PTR "1b, %l[l_yes], %c0 + %c1 \n\t"
|
|
|
".popsection \n\t"
|
|
|
- : : "i" (&((char *)key)[branch]) : : l_yes);
|
|
|
+ : : "i" (key), "i" (branch) : : l_yes);
|
|
|
|
|
|
return false;
|
|
|
l_yes:
|