lkml.org 
[lkml]   [2009]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2009-12-16 02:37    [W:0.055 / U:1.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site