dbg_current.S 441 B

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