diff options
| author | Benjamin LaHaise <bcrl@redhat.com> | 2002-10-10 05:33:37 -0400 |
|---|---|---|
| committer | Benjamin LaHaise <bcrl@redhat.com> | 2002-10-10 05:33:37 -0400 |
| commit | 994b3fb017e7ea4a1124b79a257fdf69dbbea16f (patch) | |
| tree | 692e5e965b1dbbd63e111296a427a727284e10c6 /arch/alpha/lib/dbg_stackkill.S | |
| parent | ecb796f5bc603e978b41e868f2f234a249ab288c (diff) | |
| parent | 469d2810663a7084344107cd702dabeeb7e261ed (diff) | |
Merge redhat.com:/md0/linus-2.5 into redhat.com:/md0/aio-2.5
Diffstat (limited to 'arch/alpha/lib/dbg_stackkill.S')
| -rw-r--r-- | arch/alpha/lib/dbg_stackkill.S | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/alpha/lib/dbg_stackkill.S b/arch/alpha/lib/dbg_stackkill.S new file mode 100644 index 000000000000..e09f2ae1e09e --- /dev/null +++ b/arch/alpha/lib/dbg_stackkill.S @@ -0,0 +1,35 @@ +/* + * arch/alpha/lib/killstack.S + * Contributed by Richard Henderson (rth@cygnus.com) + * + * Clobber the balance of the kernel stack, hoping to catch + * uninitialized local variables in the act. + */ + +#include <asm/asm_offsets.h> + + .text + .set noat + + .align 5 + .globl _mcount + .ent _mcount +_mcount: + .frame $30, 0, $28, 0 + .prologue 0 + + ldi $0, 0xdeadbeef + lda $2, -STACK_SIZE + sll $0, 32, $1 + and $30, $2, $2 + or $0, $1, $0 + lda $2, TASK_SIZE($2) + cmpult $2, $30, $1 + beq $1, 2f +1: stq $0, 0($2) + addq $2, 8, $2 + cmpult $2, $30, $1 + bne $1, 1b +2: ret ($28) + + .end _mcount |
