From cc520a023e45135b3919defd0a9ca6d468a20703 Mon Sep 17 00:00:00 2001 From: Wu Zhangjin Date: Sat, 10 Apr 2010 20:04:42 +0800 Subject: [PATCH] --- yaml --- r: 190515 b: refs/heads/master c: 622844bf0b4cfa4f76d4a0ddc44266938385f5ab h: refs/heads/master i: 190513: 248a201e9c6616a66ee26c626285c76767ab944e 190511: 050f4168083cdedbb0cdfee743e0ab300161a6d4 v: v3 --- [refs] | 2 +- trunk/arch/mips/Kconfig | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 6db4d166e01b..4de56e170945 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c619366e36aa75beaaee630f3d6e468422ed9530 +refs/heads/master: 622844bf0b4cfa4f76d4a0ddc44266938385f5ab diff --git a/trunk/arch/mips/Kconfig b/trunk/arch/mips/Kconfig index 38fd1b9bda71..7e6fd1cbd3f8 100644 --- a/trunk/arch/mips/Kconfig +++ b/trunk/arch/mips/Kconfig @@ -1307,6 +1307,33 @@ config CPU_CAVIUM_OCTEON endchoice +if CPU_LOONGSON2F +config CPU_NOP_WORKAROUNDS + bool + +config CPU_JUMP_WORKAROUNDS + bool + +config CPU_LOONGSON2F_WORKAROUNDS + bool "Loongson 2F Workarounds" + default y + select CPU_NOP_WORKAROUNDS + select CPU_JUMP_WORKAROUNDS + help + Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which + require workarounds. Without workarounds the system may hang + unexpectedly. For more information please refer to the gas + -mfix-loongson2f-nop and -mfix-loongson2f-jump options. + + Loongson 2F03 and later have fixed these issues and no workarounds + are needed. The workarounds have no significant side effect on them + but may decrease the performance of the system so this option should + be disabled unless the kernel is intended to be run on 2F01 or 2F02 + systems. + + If unsure, please say Y. +endif # CPU_LOONGSON2F + config SYS_SUPPORTS_ZBOOT bool select HAVE_KERNEL_GZIP