1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 2 /* 3 * arch/alpha/lib/dbg_stackcheck.S 3 * arch/alpha/lib/dbg_stackcheck.S 4 * Contributed by Richard Henderson (rth@tamu. 4 * Contributed by Richard Henderson (rth@tamu.edu) 5 * 5 * 6 * Verify that we have not overflowed the stac 6 * Verify that we have not overflowed the stack. Oops if we have. 7 */ 7 */ 8 8 9 #include <asm/asm-offsets.h> 9 #include <asm/asm-offsets.h> 10 10 11 .text 11 .text 12 .set noat 12 .set noat 13 13 14 .align 3 14 .align 3 15 .globl _mcount 15 .globl _mcount 16 .ent _mcount 16 .ent _mcount 17 _mcount: 17 _mcount: 18 .frame $30, 0, $28, 0 18 .frame $30, 0, $28, 0 19 .prologue 0 19 .prologue 0 20 20 21 lda $0, TASK_SIZE($8) 21 lda $0, TASK_SIZE($8) 22 cmpult $30, $0, $0 22 cmpult $30, $0, $0 23 bne $0, 1f 23 bne $0, 1f 24 ret ($28) 24 ret ($28) 25 1: stq $31, -8($31) # oops me, dam 25 1: stq $31, -8($31) # oops me, damn it. 26 br 1b 26 br 1b 27 27 28 .end _mcount 28 .end _mcount
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.