From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/arch/alpha/lib/dbg_stackkill.S | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 ANDROID_3.4.5/arch/alpha/lib/dbg_stackkill.S (limited to 'ANDROID_3.4.5/arch/alpha/lib/dbg_stackkill.S') diff --git a/ANDROID_3.4.5/arch/alpha/lib/dbg_stackkill.S b/ANDROID_3.4.5/arch/alpha/lib/dbg_stackkill.S new file mode 100644 index 00000000..c1e40a1a --- /dev/null +++ b/ANDROID_3.4.5/arch/alpha/lib/dbg_stackkill.S @@ -0,0 +1,35 @@ +/* + * arch/alpha/lib/dbg_stackkill.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 + + .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 -- cgit