]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/s390/kernel/entry.S
s390: have unique symbol for __switch_to address
[karo-tx-linux.git] / arch / s390 / kernel / entry.S
index 9a9a35657860f87c2c1432a71ac39c7c519180cf..c51650a1ed167d533922f1b205c666368d5cc9ad 100644 (file)
@@ -163,6 +163,16 @@ _PIF_WORK  = (_PIF_PER_TRAP)
        .endm
 
        .section .kprobes.text, "ax"
+.Ldummy:
+       /*
+        * This nop exists only in order to avoid that __switch_to starts at
+        * the beginning of the kprobes text section. In that case we would
+        * have several symbols at the same address. E.g. objdump would take
+        * an arbitrary symbol name when disassembling this code.
+        * With the added nop in between the __switch_to symbol is unique
+        * again.
+        */
+       nop     0
 
 /*
  * Scheduler resume function, called by switch_to