Module Name:    src
Committed By:   mlelstv
Date:           Tue Mar 26 08:01:21 UTC 2019

Modified Files:
        src/sys/arch/aarch64/aarch64: fault.c

Log Message:
Switch discriminates between fsc values and should check the masked fsc value,
not the whole register.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/aarch64/aarch64/fault.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/aarch64/aarch64/fault.c
diff -u src/sys/arch/aarch64/aarch64/fault.c:1.7 src/sys/arch/aarch64/aarch64/fault.c:1.8
--- src/sys/arch/aarch64/aarch64/fault.c:1.7	Fri Oct 12 01:28:57 2018
+++ src/sys/arch/aarch64/aarch64/fault.c	Tue Mar 26 08:01:21 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: fault.c,v 1.7 2018/10/12 01:28:57 ryo Exp $	*/
+/*	$NetBSD: fault.c,v 1.8 2019/03/26 08:01:21 mlelstv Exp $	*/
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <r...@nerv.org>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.7 2018/10/12 01:28:57 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.8 2019/03/26 08:01:21 mlelstv Exp $");
 
 #include "opt_compat_netbsd32.h"
 #include "opt_ddb.h"
@@ -244,7 +244,7 @@ data_abort_handler(struct trapframe *tf,
 			/*
 			 * fatal abort in usermode
 			 */
-			switch (esr) {
+			switch (fsc) {
 			case ESR_ISS_FSC_TLB_CONFLICT_FAULT:
 			case ESR_ISS_FSC_LOCKDOWN_ABORT:
 			case ESR_ISS_FSC_UNSUPPORTED_EXCLUSIVE:

Reply via email to