Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * arch/alpha/lib/dbg_current.S
0004  * Contributed by Richard Henderson (rth@cygnus.com)
0005  *
0006  * Trap if we find current not correct.
0007  */
0008 
0009 #include <asm/pal.h>
0010 
0011     .text
0012     .set noat
0013 
0014     .globl _mcount
0015     .ent _mcount
0016 _mcount:
0017     .frame $30, 0, $28, 0
0018     .prologue 0
0019 
0020     lda $0, -0x4000($30)
0021     cmpult  $8, $30, $1
0022     cmpule  $0, $30, $2
0023     and $1, $2, $3
0024     bne $3, 1f
0025 
0026     call_pal PAL_bugchk
0027 
0028 1:  ret $31, ($28), 1
0029 
0030     .end _mcount