Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1481768
  • 博文数量: 228
  • 博客积分: 1698
  • 博客等级: 上尉
  • 技术积分: 3241
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-24 21:49
个人简介

Linux

文章分类

全部博文(228)

文章存档

2017年(1)

2016年(43)

2015年(102)

2014年(44)

2013年(5)

2012年(30)

2011年(3)

分类: LINUX

2012-06-29 11:25:39

#define read_esp() ({ \
         unsigned int __dummy; \
         __asm__( \
                 "movl %%esp,%0\n\t" \
                 :"=r" (__dummy)); \
         __dummy; \
 })
 
 
current stack size:
(__u32)current_thread_info() + 0x2000 - read_esp()
阅读(2065) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~