struct task_struct * get_current(void)函数的解释--help!!
static inline struct task_struct * get_current(void)
{
struct task_struct *current;
__asm__("andl %%esp,%0; ":"=r" (current) : "0" (~8191UL));
return current;
}
堆栈指针寄存器esp与“~8191UL"相与可以得到当前进程的起始地址。
请问esp里是什么内容? ~8191UL 如何解释?UL?
谢谢!