diff options
author | Harald Koerfgen <hkoerfg@web.de> | 1999-05-01 10:08:18 +0000 |
---|---|---|
committer | Harald Koerfgen <hkoerfg@web.de> | 1999-05-01 10:08:18 +0000 |
commit | 94f05bab9bf52258637e467fd89ae4f168736f4a (patch) | |
tree | 5d086ca4de449e2e2146171d274f1a5c8a722e39 /include/asm-mips/system.h | |
parent | 22ee0f26ee9026be3ef67b9229ebfab26e1f6fb0 (diff) |
The CPO_STATUS interrupt mask patch
Diffstat (limited to 'include/asm-mips/system.h')
-rw-r--r-- | include/asm-mips/system.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h index 49f5f2aad..6e41a7635 100644 --- a/include/asm-mips/system.h +++ b/include/asm-mips/system.h @@ -1,4 +1,4 @@ -/* $Id: system.h,v 1.7 1998/08/25 09:22:03 ralf Exp $ +/* $Id: system.h,v 1.8 1999/02/15 02:22:13 ralf Exp $ * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive @@ -88,6 +88,12 @@ __restore_flags(int flags) { __asm__ __volatile__( ".set\tnoreorder\n\t" + "mfc0\t$8,$12\n\t" + "li\t$9,0xff00\n\t" + "and\t$8,$9\n\t" + "nor\t$9,$0,$9\n\t" + "and\t%0,$9\n\t" + "or\t%0,$8\n\t" "mtc0\t%0,$12\n\t" "nop\n\t" "nop\n\t" @@ -95,7 +101,7 @@ __restore_flags(int flags) ".set\treorder" : /* no output */ : "r" (flags) - : "memory"); + : "$8", "$9", "memory"); } /* |