diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-10-22 18:23:13 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-10-22 18:23:13 +0000 |
commit | 63facbc2507d3a4f540ad886cedc99810928b6d8 (patch) | |
tree | 9c0ed566010ef8cf63c83a3c297c678cb3564dd3 /sys/arch/mips64 | |
parent | d787a3c999986c7bba70e007482af7302dfffbe5 (diff) |
Only play with RM7k coprocessor 0 ICR if IMASK_EXTERNAL is not defined.
Paves the way for instrusive upcoming changes.
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/mips64/context.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/mips64/mips64/context.S b/sys/arch/mips64/mips64/context.S index 35ad8fd2a03..c9a66c86b7f 100644 --- a/sys/arch/mips64/mips64/context.S +++ b/sys/arch/mips64/mips64/context.S @@ -1,4 +1,4 @@ -/* $OpenBSD: context.S,v 1.26 2009/10/22 18:21:40 miod Exp $ */ +/* $OpenBSD: context.S,v 1.27 2009/10/22 18:23:12 miod Exp $ */ /* * Copyright (c) 2002-2003 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -62,8 +62,10 @@ LEAF(savectx, 0) REG_S v0, PCB_CONTEXT+11*REGSZ(a0) GET_CPU_INFO(t0, t1) lw t0, CI_CPL(t0) +#ifndef IMASK_EXTERNAL cfc0 t1, COP_0_ICR REG_S t1, PCB_CONTEXT+12*REGSZ(a0) # save status register +#endif REG_S t0, PCB_CONTEXT+13*REGSZ(a0) j ra move v0, zero |