Remove dead code.

is_physical_memory() dead since 235a54de.

Reviewed by:		markj
Differential revision:	https://reviews.freebsd.org/D35056
MFC after:		2 weeks
This commit is contained in:
Dmitry Chagin 2022-04-26 19:40:59 +03:00
parent e00aad1042
commit fe2c9f83a6
5 changed files with 0 additions and 69 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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);

View File

@ -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

View File

@ -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);