Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/cortex Instead of disabling preemption, set the...



details:   https://anonhg.NetBSD.org/src/rev/c021aa077407
branches:  trunk
changeset: 836971:c021aa077407
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Nov 15 00:01:38 2018 +0000

description:
Instead of disabling preemption, set the binary point field to the minimum supported value

diffstat:

 sys/arch/arm/cortex/gicv3.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r a8553297210d -r c021aa077407 sys/arch/arm/cortex/gicv3.c
--- a/sys/arch/arm/cortex/gicv3.c       Wed Nov 14 21:10:59 2018 +0000
+++ b/sys/arch/arm/cortex/gicv3.c       Thu Nov 15 00:01:38 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gicv3.c,v 1.9 2018/11/13 22:25:28 jmcneill Exp $ */
+/* $NetBSD: gicv3.c,v 1.10 2018/11/15 00:01:38 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
 #define        _INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gicv3.c,v 1.9 2018/11/13 22:25:28 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gicv3.c,v 1.10 2018/11/15 00:01:38 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -397,9 +397,8 @@
        /* Set initial priority mask */
        gicv3_set_priority(pic, IPL_HIGH);
 
-       /* Disable preemption */
-       const uint32_t icc_bpr = __SHIFTIN(0x7, ICC_BPR_EL1_BinaryPoint);
-       icc_bpr1_write(icc_bpr);
+       /* Set the binary point field to the minimum value */
+       icc_bpr1_write(0);
 
        /* Enable group 1 interrupt signaling */
        icc_igrpen1_write(ICC_IGRPEN_EL1_Enable);



Home | Main Index | Thread Index | Old Index