Messages in this thread | | | Date | Wed, 16 Dec 2009 09:32:23 +0800 | From | Xiao Guangrong <> | Subject | Re: [PATCH 2/4] perf_event: fix getting point |
| |
Frederic Weisbecker wrote:
>> We can't do it in x86_32: >> error: cast to pointer from integer of different size > > > You can just do: > > ptr = (void *)(unsigned long)value; >
Yeah, i forget this, it work well both in 32/64 machine.
Thanks, Xiao
| |