Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/arcbios Don't forget to save MIPS_CURLWP (t8) regist...



details:   https://anonhg.NetBSD.org/src/rev/2940212dd108
branches:  trunk
changeset: 933740:2940212dd108
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat May 30 02:46:07 2020 +0000

description:
Don't forget to save MIPS_CURLWP (t8) register before restoring it.

Maybe harmless because the only ARC BIOS function that takes
more than four arguments is currently unused.

diffstat:

 sys/dev/arcbios/arcbios_calls.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 2f69139560ee -r 2940212dd108 sys/dev/arcbios/arcbios_calls.S
--- a/sys/dev/arcbios/arcbios_calls.S   Sat May 30 00:00:35 2020 +0000
+++ b/sys/dev/arcbios/arcbios_calls.S   Sat May 30 02:46:07 2020 +0000
@@ -32,7 +32,7 @@
 
 #include "assym.h"
 
-RCSID("$NetBSD: arcbios_calls.S,v 1.1 2011/02/20 08:02:46 matt Exp $")
+RCSID("$NetBSD: arcbios_calls.S,v 1.2 2020/05/30 02:46:07 tsutsui Exp $")
 
        .text
        .set noreorder
@@ -101,7 +101,7 @@
        nop
 
        jalr    t9
-        nop
+        move   s0, t8
 
        FIX_V0
 



Home | Main Index | Thread Index | Old Index