]> git.baikalelectronics.ru Git - kernel.git/commit
[MIPS] Work around bad code generation for <asm/io.h>.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 15 Mar 2006 11:36:31 +0000 (11:36 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 18 Mar 2006 16:59:28 +0000 (16:59 +0000)
commitfc36ffae67f02cc4f3c3b68a007b3f16f6375c20
tree20d7f57eae99fe83b8fbdae112a6a0facc5b552d
parent77f368042f2dc48f9ff997df0bdc1271a92f8cfd
[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: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/io.h