From: James S. <jsi...@us...> - 2002-01-28 20:52:36
|
Update of /cvsroot/linux-mips/linux/include/asm-mips In directory usw-pr-cvs1:/tmp/cvs-serv14519 Modified Files: system.h Log Message: Use ssnop in __cli to make code bulletproof against superscalar cpus. Index: system.h =================================================================== RCS file: /cvsroot/linux-mips/linux/include/asm-mips/system.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- system.h 2001/12/12 16:18:36 1.6 +++ system.h 2002/01/28 20:52:33 1.7 @@ -53,16 +53,15 @@ __asm__ ( ".macro\t__cli\n\t" ".set\tpush\n\t" - ".set\treorder\n\t" ".set\tnoat\n\t" "mfc0\t$1,$12\n\t" "ori\t$1,1\n\t" "xori\t$1,1\n\t" ".set\tnoreorder\n\t" "mtc0\t$1,$12\n\t" - "nop\n\t" - "nop\n\t" - "nop\n\t" + "sll\t$0, $0, 1\t\t\t# nop\n\t" + "sll\t$0, $0, 1\t\t\t# nop\n\t" + "sll\t$0, $0, 1\t\t\t# nop\n\t" ".set\tpop\n\t" ".endm"); |