checkstack: add loongarch support for scripts/checkstack.pl
authorYouling Tang <tangyouling@kylinos.cn>
Sat, 16 Dec 2023 06:40:54 +0000 (14:40 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 Dec 2023 20:22:25 +0000 (12:22 -0800)
commitd089622b32c389d6d6a1fa6bbd9e3f121b9bcd5b
treea1ab34663849d23ffae57f7b85693be50b1fca3b
parentd738bced865a1473ea9a5e54734def2d40052e0c
checkstack: add loongarch support for scripts/checkstack.pl

scripts/checkstack.pl lacks support for the loongarch architecture.  Add
support to detect "addi.{w,d} $sp, $sp, -FRAME_SIZE" stack frame
generation instruction.

Link: https://lkml.kernel.org/r/MW4PR84MB314514273F0B7DBCC5E35A978192A@MW4PR84MB3145.NAMPRD84.PROD.OUTLOOK.COM
Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Acked-by: Huacai Chen <chenhuacai@loongson.cn>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkstack.pl