https://jxself.org/git/linux-libre.git
Raw File
Tip revision: 44ae7444b6e1ac8510be165c9459a82aa6f3470e authored by Jason Self on 14 April 2011, 23:56:22 UTC
Linux-libre 2.6.32.37-gnu1
Tip revision: 44ae744
dbg_stackcheck.S
/*
 * arch/alpha/lib/dbg_stackcheck.S
 * Contributed by Richard Henderson (rth@tamu.edu)
 *
 * Verify that we have not overflowed the stack.  Oops if we have.
 */

#include <asm/asm-offsets.h>

	.text
	.set noat

	.align 3
	.globl _mcount
	.ent _mcount
_mcount:
	.frame $30, 0, $28, 0
	.prologue 0

	lda	$0, TASK_SIZE($8)
	cmpult	$30, $0, $0
	bne	$0, 1f
	ret	($28)
1:	stq	$31, -8($31)	# oops me, damn it.
	br	1b

	.end _mcount
back to top