Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/arch/aarch64/aarch64/pmap.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/arch/aarch64/aarch64/pmap.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.41.2.2 retrieving revision 1.41.2.3 diff -u -p -r1.41.2.2 -r1.41.2.3 --- src/sys/arch/aarch64/aarch64/pmap.c 2019/09/23 07:00:35 1.41.2.2 +++ src/sys/arch/aarch64/aarch64/pmap.c 2019/11/04 14:08:18 1.41.2.3 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.41.2.2 2019/09/23 07:00:35 martin Exp $ */ +/* $NetBSD: pmap.c,v 1.41.2.3 2019/11/04 14:08:18 martin Exp $ */ /* * Copyright (c) 2017 Ryo Shimizu @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.41.2.2 2019/09/23 07:00:35 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.41.2.3 2019/11/04 14:08:18 martin Exp $"); #include "opt_arm_debug.h" #include "opt_ddb.h" @@ -874,6 +874,22 @@ pmap_icache_sync_range(pmap_t pm, vaddr_ pm_unlock(pm); } +/* + * Routine: pmap_procwr + * + * Function: + * Synchronize caches corresponding to [addr, addr+len) in p. + * + */ +void +pmap_procwr(struct proc *p, vaddr_t va, int len) +{ + + /* We only need to do anything if it is the current process. */ + if (p == curproc) + cpu_icache_sync_range(va, len); +} + static pt_entry_t _pmap_pte_adjust_prot(pt_entry_t pte, vm_prot_t prot, vm_prot_t protmask, bool user)