xref: /kernel/linux/linux-5.10/arch/alpha/lib/dbg_stackcheck.S (revision 8c2ecf20)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/alpha/lib/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * arch/alpha/lib/dbg_stackcheck.S
48c2ecf20Sopenharmony_ci * Contributed by Richard Henderson (rth@tamu.edu)
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Verify that we have not overflowed the stack.  Oops if we have.
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include <asm/asm-offsets.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci	.text
128c2ecf20Sopenharmony_ci	.set noat
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci	.align 3
158c2ecf20Sopenharmony_ci	.globl _mcount
168c2ecf20Sopenharmony_ci	.ent _mcount
178c2ecf20Sopenharmony_ci_mcount:
188c2ecf20Sopenharmony_ci	.frame $30, 0, $28, 0
198c2ecf20Sopenharmony_ci	.prologue 0
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci	lda	$0, TASK_SIZE($8)
228c2ecf20Sopenharmony_ci	cmpult	$30, $0, $0
238c2ecf20Sopenharmony_ci	bne	$0, 1f
248c2ecf20Sopenharmony_ci	ret	($28)
258c2ecf20Sopenharmony_ci1:	stq	$31, -8($31)	# oops me, damn it.
268c2ecf20Sopenharmony_ci	br	1b
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci	.end _mcount
29

Indexes created Thu Nov 07 10:32:03 CST 2024