Skip to content
Commit 966f4406 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Work around bad code generation for <asm/io.h>.


    
If a call to set_io_port_base() was being followed by usage of
mips_io_port_base in the same function gcc was possibly using the old
value due to some clever abuse of const.  Adding a barrier will keep
the optimization and result in correct code with latest gcc.
    
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 66a9a4ff
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment