Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2015 19:33:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-arm@FreeBSD.org
Subject:   [Bug 199739] with ARM_NEW_PMAP ptrace syscalls do not achieve icache consistency
Message-ID:  <bug-199739-7@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199739

            Bug ID: 199739
           Summary: with ARM_NEW_PMAP ptrace syscalls do not achieve
                    icache consistency
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: arm
          Assignee: freebsd-arm@FreeBSD.org
          Reporter: weiss@uni-mainz.de

offset in page is ignored

diff --git a/sys/arm/arm/pmap-v6-new.c b/sys/arm/arm/pmap-v6-new.c
index 53896d4..ff3fe68 100644
--- a/sys/arm/arm/pmap-v6-new.c
+++ b/sys/arm/arm/pmap-v6-new.c
@@ -6111,7 +6111,7 @@ pmap_dcache_wb_pou(vm_paddr_t pa, vm_size_t size,
vm_memattr_t ma)
        if (*sysmaps->CMAP3)
                panic("%s: CMAP3 busy", __func__);
        pte2_store(sysmaps->CMAP3, PTE2_KERN_NG(pa, PTE2_AP_KRW, ma));
-       va = (vm_offset_t)sysmaps->CADDR3;
+       va = (vm_offset_t)sysmaps->CADDR3 + (pa & PAGE_MASK);
        tlb_flush_local(va);
        dcache_wb_pou(va, size);
        pte2_clear(sysmaps->CMAP3);

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-199739-7>