Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Fix previous - atomic_lockpatch[] is still ...



details:   https://anonhg.NetBSD.org/src/rev/04603908257f
branches:  trunk
changeset: 828849:04603908257f
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Jan 07 13:37:39 2018 +0000

description:
Fix previous - atomic_lockpatch[] is still there.

diffstat:

 sys/arch/x86/x86/patch.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 33606745a9d7 -r 04603908257f sys/arch/x86/x86/patch.c
--- a/sys/arch/x86/x86/patch.c  Sun Jan 07 13:15:23 2018 +0000
+++ b/sys/arch/x86/x86/patch.c  Sun Jan 07 13:37:39 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: patch.c,v 1.27 2018/01/07 13:15:24 maxv Exp $  */
+/*     $NetBSD: patch.c,v 1.28 2018/01/07 13:37:39 maxv Exp $  */
 
 /*-
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: patch.c,v 1.27 2018/01/07 13:15:24 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: patch.c,v 1.28 2018/01/07 13:37:39 maxv Exp $");
 
 #include "opt_lockdebug.h"
 #ifdef i386
@@ -203,6 +203,8 @@
 
                /* lock -> nop */
                x86_hotpatch(HP_NAME_NOLOCK, bytes, sizeof(bytes));
+               for (i = 0; atomic_lockpatch[i] != 0; i++)
+                       patchbytes(atomic_lockpatch[i], bytes, sizeof(bytes));
 #endif
        }
 



Home | Main Index | Thread Index | Old Index