dbg_stackcheck.S 427 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * arch/alpha/lib/dbg_stackcheck.S
  3. * Contributed by Richard Henderson (rth@tamu.edu)
  4. *
  5. * Verify that we have not overflowed the stack. Oops if we have.
  6. */
  7. #include <asm/asm-offsets.h>
  8. .text
  9. .set noat
  10. .align 3
  11. .globl _mcount
  12. .ent _mcount
  13. _mcount:
  14. .frame $30, 0, $28, 0
  15. .prologue 0
  16. lda $0, TASK_SIZE($8)
  17. cmpult $30, $0, $0
  18. bne $0, 1f
  19. ret ($28)
  20. 1: stq $31, -8($31) # oops me, damn it.
  21. br 1b
  22. .end _mcount