From nobody Tue Apr 26 16:41:19 2022 X-Original-To: dev-commits-src-main@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 019CE199E6BD; Tue, 26 Apr 2022 16:41:20 +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 4KnnhH4mShz4lwR; Tue, 26 Apr 2022 16:41:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650991279; 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=U/PXl3v2lzJjs+Pt6PwtMXTvZjEnmpDRHC1RFAFkYpI=; b=EauGfA9k0ZlN434WlL7bl60WoLNpolF4EoQCkdHiK5RC/7R75FtEhARc2/N4qY87HZd0AN Q7rkc9jT2g3K8AurUs+qZElwx1Spa5gQ67nmv0XT9esARVWudAmkR2zHPQeYY0C94D22ms nd/mD+wnviYw3BHk5GrDSOPx7BrJjBdVZ8qp+HD+FZMRSeXi2yHgkkpd61jM7ljObxEwmJ zY6DxE68LjjLmSuB+JaVkiow0cwtCRiEKyM8KHgG/O+QDTmMfKuwaTMS+COEz02UPEsWzn Ot7oKWGFe7dNtELYBNLToW590Hw81O19SD+vU/2gtx6GQTnNWfWm21tjeGMYmQ== 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 6B4C213103; Tue, 26 Apr 2022 16:41:19 +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 23QGfJET075003; Tue, 26 Apr 2022 16:41:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23QGfJTg075002; Tue, 26 Apr 2022 16:41:19 GMT (envelope-from git) Date: Tue, 26 Apr 2022 16:41:19 GMT Message-Id: <202204261641.23QGfJTg075002@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: fe2c9f83a6dc - main - Remove dead code. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: fe2c9f83a6dc1cc62da177a765ce8a265894b2cd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650991279; 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=U/PXl3v2lzJjs+Pt6PwtMXTvZjEnmpDRHC1RFAFkYpI=; b=UD7ZAEiIk4/x9KhNu7ZZ1DKtOK/cqDO+wkYmL6j3NQWr3BFM++TG6daOYcActm8dDiin6x 40YNgg2YVxnufCpjuVFDI4ugoZGGL0hR3dsX5U9Q2txleSfLfcFnshH/C8NEN4at6hGZ7A N9bwHpUMsDP8ioabRP3e43WEsEqiDBebU5CqaZtIzSHi5Z5AQcD2J0ryLmV+d4yVsRomyN FQN22dN2xIfYWoQGauriO0y4QsSwtSobcKEiC6U629C/hlFS4jVOSMLMBXr2JSryLTxdCS nPW8XySoqUX3dQ8t73meVogILgs6X5IkcSnPTnn4HR9IJwEE3sHV91Z35auNng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650991279; a=rsa-sha256; cv=none; b=jSptA+E3Ra1iw6TCxMinmMfOd3iLNE2/V10NRFimUmdToFfWQp7vPW+NB2dl2NofX3s9Gv hQQKNHkkKSRz1U4LSeNNOBmp5Lw/WE4Urzwy8TCjeWRFJJtUo9fOO0RXULCS4fBUvfjeeQ iyqjcAI2ICRjhf8np57pu/XffWXqjtebkiL0ess/Z5DPsPwwB7ptsxTaFCqzRDIeCzJH2e +tD9hxjOmN9x9KDv1I4AsuZbFgsaTMNDQwvJ+9+TOJ5RIGHhGbLqNnfGUPI5oxMl8gc+DJ OKlPpiwEpKIXZxVzDVA9cyV/N32urL4OCX5yCkOlpjE35aRZyw0n5D1IExVt/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=fe2c9f83a6dc1cc62da177a765ce8a265894b2cd commit fe2c9f83a6dc1cc62da177a765ce8a265894b2cd Author: Dmitry Chagin AuthorDate: 2022-04-26 16:40:59 +0000 Commit: Dmitry Chagin CommitDate: 2022-04-26 16:40:59 +0000 Remove dead code. is_physical_memory() dead since 235a54de. Reviewed by: markj Differential revision: https://reviews.freebsd.org/D35056 MFC after: 2 weeks --- 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 232e53c63952..c9c498180c7e 100644 --- a/sys/amd64/amd64/vm_machdep.c +++ b/sys/amd64/amd64/vm_machdep.c @@ -690,28 +690,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 4a7347443407..bf39cb2305cb 100644 --- a/sys/powerpc/powerpc/vm_machdep.c +++ b/sys/powerpc/powerpc/vm_machdep.c @@ -208,23 +208,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 78acadd2b733..b4a27ca01eaa 100644 --- a/sys/x86/include/x86_var.h +++ b/sys/x86/include/x86_var.h @@ -134,7 +134,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);