dbg_current.S 402 B

123456789101112131415161718192021222324252627282930
  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