stackcheck.S
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:0k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  * arch/alpha/lib/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