Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/arch/arm/arm Pull up following revision(s) (requested...



details:   https://anonhg.NetBSD.org/src/rev/3d2d1e027fbf
branches:  netbsd-9
changeset: 938982:3d2d1e027fbf
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Sep 22 18:41:48 2020 +0000

description:
Pull up following revision(s) (requested by skrll in ticket #1092):

        sys/arch/arm/arm/undefined.c: revision 1.67

Allow an undefined instruction to use lr (r14) as Rt. New gcc emits this
with TPIDRURO read.

Not sure why the exception handler cares if sp or pc are used as Rt

diffstat:

 sys/arch/arm/arm/undefined.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c70be6ec31cc -r 3d2d1e027fbf sys/arch/arm/arm/undefined.c
--- a/sys/arch/arm/arm/undefined.c      Tue Sep 22 18:39:01 2020 +0000
+++ b/sys/arch/arm/arm/undefined.c      Tue Sep 22 18:41:48 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: undefined.c,v 1.65 2019/04/06 03:06:24 thorpej Exp $   */
+/*     $NetBSD: undefined.c,v 1.65.4.1 2020/09/22 18:41:48 martin Exp $        */
 
 /*
  * Copyright (c) 2001 Ben Harris.
@@ -55,7 +55,7 @@
 #include <sys/kgdb.h>
 #endif
 
-__KERNEL_RCSID(0, "$NetBSD: undefined.c,v 1.65 2019/04/06 03:06:24 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: undefined.c,v 1.65.4.1 2020/09/22 18:41:48 martin Exp $");
 
 #include <sys/kmem.h>
 #include <sys/queue.h>
@@ -137,7 +137,7 @@
         * Don't overwrite sp, pc, etc.
         */
        const u_int regno = (insn >> 12) & 15;
-       if (regno > 12)
+       if (regno == 13 || regno == 15)
                return 1;
 
        /*



Home | Main Index | Thread Index | Old Index