[FFmpeg-devel] [PATCH] define _DARWIN_C_SOURCE for MAP_ANON
Ramiro Polla
ramiro.polla
Wed Jul 21 19:47:00 CEST 2010
2010/7/21 M?ns Rullg?rd <mans at mansr.com>:
> Ramiro Polla <ramiro.polla at gmail.com> writes:
>> 2010/7/21 M?ns Rullg?rd <mans at mansr.com>:
>>> BTW, the dyncode thing is missing a cache sync operation.
>>
>> Could you please elaborate on this?
>
> After writing the code, the D-cache must be flushed and the I-cache
> invalidated. ?There is usually no automatic coherency between them.
Something like in attached patch? (not thoroughly tested, I'd just
like to know if this is the right way to go). Is something equivalent
needed for linux or will mprotect do it automatically?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: invalidate_icache.diff
Type: application/octet-stream
Size: 1948 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100721/13b26f03/attachment.obj>
More information about the ffmpeg-devel
mailing list