From nobody Fri Jun 17 19:39:31 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 19B6F85C274; Fri, 17 Jun 2022 19:39:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LPq9v2dNrz3RDS; Fri, 17 Jun 2022 19:39:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/38wsCqcc637nCiaMQu/B945podSJsMEisUKLUVNUBk=; b=t3X3P5No/5JKDJAPRBMQfFdGpCKYEuKMuVIkzcqXdg8CIKOk9oEN46qo9F5IPpAto1vnBU 9qIwCMf9D+OpZKb4KRfNk3siygCqGZ+A122uCv2Pd7bQmVZVRdIqQiGI6hTHYL2SJY/ago /BxN3ULx6rc46UQt1NqWH26zYuwSIit9PKT2l8JxzWlfyf+rVMxlM+GzH4Zb7gRB9CkyJY OgbpwBljha5i+SJPmSzzHAe+YGbjF8MyywiBzlZb9WdBgvfAyLlGu04yxLcRJe34+xXitE 4OZ+1ty+tkw10lbnCATP5sIhxJTrIpT+wuhrv2fy47tkz77qtoOdkmCLphGahg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 22EBF25ADC; Fri, 17 Jun 2022 19:39:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25HJdVHb016111; Fri, 17 Jun 2022 19:39:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25HJdVgQ016110; Fri, 17 Jun 2022 19:39:31 GMT (envelope-from git) Date: Fri, 17 Jun 2022 19:39:31 GMT Message-Id: <202206171939.25HJdVgQ016110@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: cca86d9418bd - stable/13 - Remove dead code. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: cca86d9418bdc271fde4c141d9741942f479d097 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/38wsCqcc637nCiaMQu/B945podSJsMEisUKLUVNUBk=; b=HmiIyHuJ8OlEUuybgPIL0EaV8Ld/fFLrYt7rjUvjJOuT+IkdvUmM15u0VakQwn9AEFmA+J 1rfzlzJ2VkxS2umczDKddIb8t5GqBqF3fPllmQHJSuYq5tIZO4ftJBeMaCO4xDStbDW0o0 uf3u2wDtr38FhPvXqAiNGPctrwhnRN3QxSfBrt4Sr9ovLQkzTepaKyJKvoTF4c6O52VHlZ eXC/1sdmKlMMjxmxEv54AU/tNk0xVIJLkm3IcZFbMHj1WXF90q342ujRvkgb+HlQeewaJv ZU4XKc4cbIuboQu+fhFJpl3Lj/nxl7xDZ9tqZImRW9lDF0RDYCNTOzFU8y2s8w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655494771; a=rsa-sha256; cv=none; b=Sttf4OmC3TS0/6uoDVkLJb3revyRcPxnx+IabTNYLfOaBACtdcShTQipBSTy8diqyAx7he 3boCgui/feGhaU7J1X2RB+1SgkWvg5qs74NfexGhjRIJ+BtbgtXA12CGJmYemQ31rZ27IJ cuoAYaTABaC2/WR67AxBgHeYCSBTBXuhxcDf2RyCWfzZe1o0i4UHWGdRg/LS2KZ1/HLGIA bZBWOTbigculG4UlLo46KqKez0/sh2v9MZSYjPHew25wt0lDJuvqdp2GdQJky+PMNQD6RI q2Ugy0BYJQ6Df8c2175uxPXshq5ucngiis3WS70yWnkUn8a9lbx3Rdw40BuigA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=cca86d9418bdc271fde4c141d9741942f479d097 commit cca86d9418bdc271fde4c141d9741942f479d097 Author: Dmitry Chagin AuthorDate: 2022-04-26 16:40:59 +0000 Commit: Dmitry Chagin CommitDate: 2022-06-17 19:34:10 +0000 Remove dead code. is_physical_memory() dead since 235a54de. Reviewed by: markj Differential revision: https://reviews.freebsd.org/D35056 MFC after: 2 weeks (cherry picked from commit fe2c9f83a6dc1cc62da177a765ce8a265894b2cd) --- sys/amd64/amd64/vm_machdep.c | 25 ------------------------- sys/i386/i386/vm_machdep.c | 25 ------------------------- sys/powerpc/include/md_var.h | 1 - sys/powerpc/powerpc/vm_machdep.c | 17 ----------------- sys/x86/include/x86_var.h | 1 - 5 files changed, 69 deletions(-) diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c index e9804c6afb94..e308f4a44b3e 100644 --- a/sys/amd64/amd64/vm_machdep.c +++ b/sys/amd64/amd64/vm_machdep.c @@ -702,28 +702,3 @@ cpu_set_user_tls(struct thread *td, void *tls_base) pcb->pcb_fsbase = (register_t)tls_base; return (0); } - -/* - * Tell whether this address is in some physical memory region. - * Currently used by the kernel coredump code in order to avoid - * dumping the ``ISA memory hole'' which could cause indefinite hangs, - * or other unpredictable behaviour. - */ - -int -is_physical_memory(vm_paddr_t addr) -{ - -#ifdef DEV_ISA - /* The ISA ``memory hole''. */ - if (addr >= 0xa0000 && addr < 0x100000) - return 0; -#endif - - /* - * stuff other tests for known memory-mapped devices (PCI?) - * here - */ - - return 1; -} diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c index ba1bc996bda4..a27aebf83a31 100644 --- a/sys/i386/i386/vm_machdep.c +++ b/sys/i386/i386/vm_machdep.c @@ -650,28 +650,3 @@ sf_buf_invalidate_cache(vm_page_t m) return (sf_buf_process_page(m, sf_buf_invalidate)); } - -/* - * Tell whether this address is in some physical memory region. - * Currently used by the kernel coredump code in order to avoid - * dumping the ``ISA memory hole'' which could cause indefinite hangs, - * or other unpredictable behaviour. - */ - -int -is_physical_memory(vm_paddr_t addr) -{ - -#ifdef DEV_ISA - /* The ISA ``memory hole''. */ - if (addr >= 0xa0000 && addr < 0x100000) - return 0; -#endif - - /* - * stuff other tests for known memory-mapped devices (PCI?) - * here - */ - - return 1; -} diff --git a/sys/powerpc/include/md_var.h b/sys/powerpc/include/md_var.h index 56c3639fe070..bfe3427f0712 100644 --- a/sys/powerpc/include/md_var.h +++ b/sys/powerpc/include/md_var.h @@ -58,7 +58,6 @@ extern int hw_direct_map; void __syncicache(void *, int); -int is_physical_memory(vm_offset_t addr); int mem_valid(vm_offset_t addr, int len); void decr_init(void); diff --git a/sys/powerpc/powerpc/vm_machdep.c b/sys/powerpc/powerpc/vm_machdep.c index f201ebcfaabf..e22f36f0b8be 100644 --- a/sys/powerpc/powerpc/vm_machdep.c +++ b/sys/powerpc/powerpc/vm_machdep.c @@ -203,23 +203,6 @@ cpu_exit(struct thread *td) } -/* - * Tell whether this address is in some physical memory region. - * Currently used by the kernel coredump code in order to avoid - * dumping the ``ISA memory hole'' which could cause indefinite hangs, - * or other unpredictable behaviour. - */ -int -is_physical_memory(vm_offset_t addr) -{ - - /* - * stuff other tests for known memory-mapped devices (PCI?) - * here - */ - return (1); -} - /* * CPU threading functions related to the VM layer. These could be used * to map the SLB bits required for the kernel stack instead of forcing a diff --git a/sys/x86/include/x86_var.h b/sys/x86/include/x86_var.h index e4c3fe797a00..7c184960635b 100644 --- a/sys/x86/include/x86_var.h +++ b/sys/x86/include/x86_var.h @@ -133,7 +133,6 @@ void initializecpu(void); void initializecpucache(void); bool fix_cpuid(void); void fillw(int /*u_short*/ pat, void *base, size_t cnt); -int is_physical_memory(vm_paddr_t addr); int isa_nmi(int cd); void handle_ibrs_entry(void); void handle_ibrs_exit(void);