On Fri, 2010-03-12 at 09:50 +0100, Thomas Bogendoerfer wrote: > On Fri, Mar 12, 2010 at 02:07:37AM +0800, Wu Zhangjin wrote: > > +/* > > + * If the Instruction Pointer is in module space (0xc0000000), return ture; > > + * otherwise, it is in kernel space (0x80000000), return false. > > + */ > > +#define in_module(ip) (unlikely((ip) & 0x40000000)) > > + > > looks broken for 64bit, but maybe this is a 32bit only feature... Actually, this works well on my 64bit YeeLoong laptop ;) But we should find another better solution. Regards, Wu Zhangjin