From owner-svn-src-all@FreeBSD.ORG Mon May 18 18:44:54 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEB7D1065701; Mon, 18 May 2009 18:44:54 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D9DFE8FC28; Mon, 18 May 2009 18:44:54 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4IIisP0071355; Mon, 18 May 2009 18:44:54 GMT (envelope-from marcel@svn.freebsd.org) Received: (from marcel@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4IIisvj071351; Mon, 18 May 2009 18:44:54 GMT (envelope-from marcel@svn.freebsd.org) Message-Id: <200905181844.n4IIisvj071351@svn.freebsd.org> From: Marcel Moolenaar Date: Mon, 18 May 2009 18:44:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r192324 - in head/sys/ia64: ia64 include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2009 18:44:56 -0000 Author: marcel Date: Mon May 18 18:44:54 2009 New Revision: 192324 URL: http://svn.freebsd.org/changeset/base/192324 Log: Rename ia64_invalidate_icache() to ia64_sync_icache(). We're not invalidating anything. Modified: head/sys/ia64/ia64/elf_machdep.c head/sys/ia64/ia64/machdep.c head/sys/ia64/ia64/pmap.c head/sys/ia64/include/md_var.h Modified: head/sys/ia64/ia64/elf_machdep.c ============================================================================== --- head/sys/ia64/ia64/elf_machdep.c Mon May 18 18:37:18 2009 (r192323) +++ head/sys/ia64/ia64/elf_machdep.c Mon May 18 18:44:54 2009 (r192324) @@ -300,9 +300,12 @@ elf_cpu_load_file(linker_file_t lf) ++ph; } - /* Invalidate the I-cache, but not for the kernel itself. */ + /* + * Make the I-cache coherent, but don't worry obout the kernel + * itself because the loader needs to do that. + */ if (lf->id != 1) - ia64_invalidate_icache((uintptr_t)lf->address, lf->size); + ia64_sync_icache((uintptr_t)lf->address, lf->size); return (0); } Modified: head/sys/ia64/ia64/machdep.c ============================================================================== --- head/sys/ia64/ia64/machdep.c Mon May 18 18:37:18 2009 (r192323) +++ head/sys/ia64/ia64/machdep.c Mon May 18 18:44:54 2009 (r192324) @@ -122,7 +122,7 @@ struct fpswa_iface *fpswa_iface; u_int64_t ia64_pal_base; u_int64_t ia64_port_base; -static int ia64_inval_icache_needed; +static int ia64_sync_icache_needed; char machine[] = MACHINE; SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD, machine, 0, ""); @@ -216,7 +216,7 @@ identifycpu(void) } break; case 0x20: - ia64_inval_icache_needed = 1; + ia64_sync_icache_needed = 1; family_name = "Itanium 2"; switch (model) { @@ -1537,11 +1537,11 @@ ia64_highfp_save(struct thread *td) } void -ia64_invalidate_icache(vm_offset_t va, vm_offset_t sz) +ia64_sync_icache(vm_offset_t va, vm_offset_t sz) { vm_offset_t lim; - if (!ia64_inval_icache_needed) + if (!ia64_sync_icache_needed) return; lim = va + sz; Modified: head/sys/ia64/ia64/pmap.c ============================================================================== --- head/sys/ia64/ia64/pmap.c Mon May 18 18:37:18 2009 (r192323) +++ head/sys/ia64/ia64/pmap.c Mon May 18 18:44:54 2009 (r192324) @@ -1500,7 +1500,7 @@ pmap_protect(pmap_t pmap, vm_offset_t sv } if (prot & VM_PROT_EXECUTE) - ia64_invalidate_icache(sva, PAGE_SIZE); + ia64_sync_icache(sva, PAGE_SIZE); pmap_pte_prot(pmap, pte, prot); pmap_invalidate_page(pmap, sva); @@ -1635,7 +1635,7 @@ validate: /* Invalidate the I-cache when needed. */ if (icache_inval) - ia64_invalidate_icache(va, PAGE_SIZE); + ia64_sync_icache(va, PAGE_SIZE); if ((prot & VM_PROT_WRITE) != 0) vm_page_flag_set(m, PG_WRITEABLE); Modified: head/sys/ia64/include/md_var.h ============================================================================== --- head/sys/ia64/include/md_var.h Mon May 18 18:37:18 2009 (r192323) +++ head/sys/ia64/include/md_var.h Mon May 18 18:44:54 2009 (r192324) @@ -88,8 +88,8 @@ uint64_t ia64_get_hcdp(void); int ia64_highfp_drop(struct thread *); int ia64_highfp_save(struct thread *); struct ia64_init_return ia64_init(void); -void ia64_invalidate_icache(vm_offset_t, vm_size_t); void ia64_probe_sapics(void); +void ia64_sync_icache(vm_offset_t, vm_size_t); void interrupt(struct trapframe *); void map_gateway_page(void); void map_pal_code(void);