[FFmpeg-devel] [PATCH] define _DARWIN_C_SOURCE for MAP_ANON

Måns Rullgård mans
Wed Jul 21 21:19:24 CEST 2010


Reimar D?ffinger <Reimar.Doeffinger at gmx.de> writes:

> On Wed, Jul 21, 2010 at 11:37:27AM -0700, Alexander Strange wrote:
>> sys_icache_invalidate doesn't do anything on x86.
>> x86 (at least Intel and AMD) don't even have an icache in the first
>> place,
>
> That's nonsense.
>
>> so they don't need to be flushe and I don't think could test
>> code to flush one.
>
> They have some special hacks to ensure D and I-cache are coherent.
> Actually they have some even worse hacks, truly horrible things
> in order to make self-modifying code continue to work (like the
> debugger-defeating stuff where one instruction write to the one
> directly following it).

I didn't know that.  Since the dyncode is x86 only, there is no need
for a change then.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list