dbg_current.S 402 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * arch/alpha/lib/dbg_current.S
  3. * Contributed by Richard Henderson (rth@cygnus.com)
  4. *
  5. * Trap if we find current not correct.
  6. */
  7. #include <asm/pal.h>
  8. .text
  9. .set noat
  10. .globl _mcount
  11. .ent _mcount
  12. _mcount:
  13. .frame $30, 0, $28, 0
  14. .prologue 0
  15. lda $0, -0x4000($30)
  16. cmpult $8, $30, $1
  17. cmpule $0, $30, $2
  18. and $1, $2, $3
  19. bne $3, 1f
  20. call_pal PAL_bugchk
  21. 1: ret $31, ($28), 1
  22. .end _mcount