On Sat, Mar 13, 2010 at 12:34:15PM +0800, Wu Zhangjin wrote: > From: Wu Zhangjin <wuzhangjin@xxxxxxxxx> > > As the Chapter 15: "Errata: Issue of Out-of-order in loongson"[1] shows, to > workaround the Issue of Loongson-2F,We need to do: > > "When switching from user mode to kernel mode, you should flush the > branch target history such as BTB and RAS." > > This patch did clear BTB(branch target buffer), forbid RAS(return > address stack) via Loongson-2F's 64bit diagnostic register. > > [1] Chinese Version: http://www.loongson.cn/uploadfile/file/200808211 > [2] English Version of Chapter 15: > http://groups.google.com.hk/group/loongson-dev/msg/e0d2e220958f10a6?dmode=source Thanks, applied. Ralf