]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
xtensa: drop dead code from entry.S
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 17 Apr 2022 09:41:13 +0000 (02:41 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 2 May 2022 02:51:21 +0000 (19:51 -0700)
KERNEL_STACK_OVERFLOW_CHECK is incomplete and have never been enabled.
Remove it.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/entry.S

index 6b6eff658795c82f179a98d642c5fd449c367920..3c0b1aac7aba0e61fea57a1c649cf2d27114fa15 100644 (file)
 #include <asm/tlbflush.h>
 #include <variant/tie-asm.h>
 
-/* Unimplemented features. */
-
-#undef KERNEL_STACK_OVERFLOW_CHECK
-
-/* Not well tested.
- *
- * - fast_coprocessor
- */
-
 /*
  * Macro to find first bit set in WINDOWBASE from the left + 1
  *
@@ -350,15 +341,6 @@ KABI_W     _bbsi.l a2, 3, 1f
        l32i    a0, a1, PT_AREG0        # restore saved a0
        wsr     a0, depc
 
-#ifdef KERNEL_STACK_OVERFLOW_CHECK
-
-       /*  Stack overflow check, for debugging  */
-       extui   a2, a1, TASK_SIZE_BITS,XX
-       movi    a3, SIZE??
-       _bge    a2, a3, out_of_stack_panic
-
-#endif
-
 /*
  * This is the common exception handler.
  * We get here from the user exception handler or simply by falling through