This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Intel StrataFlash fix for MIPS


> Since the processor guarantees execution of load/store operations
> in program order, a dummy read fixes this. It took me a while to
> notice that neither HAL_REORDER_BARRIER() nor HAL_IO_BARRIER()
> (the latter does not even exist for MIPS) address this particular
> problem. AFAICT there is nothing in ecos that does, or am I missing
> something here?

Humm, interesting point. I can kind of understand these macros not
doing what you want. They don't consider instruction fetches as
upsetting the flow of code. Any processor which can do "branch"
prediction could be filling its pipeline with code from the caller,
whch does not work, because its not accessable. 

It would be interesting to see what the GCC people say about
this. Maybe we need to add some sort of HAL_FUNCTION_BARRIER macro!

        Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]