freebsd-dev/sys
Mitchell Horne 49439183ce Convert arm's physmem interface to MI code
The arm_physmem interface found in arm's MD code provides a convenient
set of routines for adding/excluding physical memory regions and
initializing important kernel globals such as Maxmem, realmem,
phys_avail[], and dump_avail[]. It is especially convenient for FDT
systems, since we can use FDT parsing functions and pass the result
directly to one of these physmem routines. This interface is already in
use on arm and arm64, and can be used to simplify this early
initialization on RISC-V as well.

This requires only a couple trivial changes:
  - Move arm_physmem_kernel_addr to arm/machdep.c. It is unused on arm64,
    and manipulated entirely in arm MD code.
  - Convert arm32_btop/arm64_btop to atop. This is equivalently defined
    on all architectures.
  - Drop the "arm" prefix.

Reviewed by:	manu, emaste ("looks reasonable")
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D24153
2020-04-19 00:12:30 +00:00
..
amd64 vmm.h: Add ABI assertions and mark implicit holes 2020-04-17 15:19:42 +00:00
arm Convert arm's physmem interface to MI code 2020-04-19 00:12:30 +00:00
arm64 Convert arm's physmem interface to MI code 2020-04-19 00:12:30 +00:00
bsm vfs: add realpathat syscall 2020-02-20 16:58:19 +00:00
cam Don't try to copyout() to a kernel buffer. 2020-04-17 18:19:13 +00:00
cddl Make ZFS depend on xdr.ko only. It doesn't need kernel RPC. 2020-04-17 06:05:08 +00:00
compat Remove a vestigal reference to kmem_object. 2020-04-17 19:12:52 +00:00
conf Convert arm's physmem interface to MI code 2020-04-19 00:12:30 +00:00
contrib Remove FreeBSD/armv4 specific bits from CK. 2020-04-13 23:16:32 +00:00
crypto Use crypto_contiguous_subsegment(). 2020-04-15 21:05:38 +00:00
ddb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
dev hda: remove hda*_lockowned macros 2020-04-18 18:25:30 +00:00
dts allwinner: aw_thermal: Cope with DTS changes 2020-04-14 19:05:17 +00:00
fs Replace all instances of the typedef mbuf_t with "struct mbuf *". 2020-04-17 21:17:51 +00:00
gdb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
geom Mark eli_metadata_crypto_supported inline. 2020-04-15 18:27:28 +00:00
gnu dts: Import DTS from Linux 5.6 2020-04-14 18:57:00 +00:00
i386 Convert canary, execpathp, and pagesizes to pointers. 2020-04-16 21:53:17 +00:00
isa sc(4) md bits: stop setting sc->kbd entirely 2019-12-30 02:07:55 +00:00
kern Convert arm's physmem interface to MI code 2020-04-19 00:12:30 +00:00
kgssapi Remove support for Kernel GSS algorithms deprecated in r348875. 2020-04-10 23:08:41 +00:00
libkern Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
mips Use the right type for 64-bit coprocessor registers. 2020-04-17 18:24:47 +00:00
modules More fixes to build the kernel with a compiler that defaults to -fno-common 2020-04-18 12:54:40 +00:00
net bridge: Simplify mac address generation 2020-04-18 08:00:58 +00:00
net80211 Fix -Wvoid-pointer-to-enum-cast warnings. 2020-04-15 18:15:58 +00:00
netgraph tty: convert tty_lock_assert to tty_assert_locked to hide lock type 2020-04-17 18:34:49 +00:00
netinet Avoid calling protocol drain routines more than once per reclamation event. 2020-04-16 20:17:24 +00:00
netinet6 Avoid calling protocol drain routines more than once per reclamation event. 2020-04-16 20:17:24 +00:00
netipsec Refactor driver and consumer interfaces for OCF (in-kernel crypto). 2020-03-27 18:25:23 +00:00
netpfil pf: Do not allow negative ps_len in DIOCGETSTATES 2020-04-17 14:35:11 +00:00
netsmb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
nfs Re-organize the NFS file handle affinity code for the NFS server. 2020-04-14 00:01:26 +00:00
nfsclient
nfsserver
nlm Remove the old NFS lock device driver that uses Giant. 2020-04-09 14:44:46 +00:00
ofed Convert OFED rtable interactions to the new routing KPI. 2020-04-15 13:06:55 +00:00
opencrypto Avoid checking pointers that are never NULL. 2020-04-02 17:22:16 +00:00
powerpc Convert canary, execpathp, and pagesizes to pointers. 2020-04-16 21:53:17 +00:00
riscv riscv: Add semicolon missing from r359672 2020-04-06 23:54:50 +00:00
rpc Split XDR into separate kernel module. Make krpc depend on xdr. 2020-04-17 06:04:20 +00:00
security audit_canon_path_vp: don't panic if cdir == NULL 2020-04-17 02:09:31 +00:00
sys Convert arm's physmem interface to MI code 2020-04-19 00:12:30 +00:00
teken
tests Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
tools vfs: stop null checking routines in vop wrappers 2020-01-26 00:41:38 +00:00
ufs ufs: apply suspension for non-forced rw unmounts. 2020-04-10 01:24:16 +00:00
vm Remove dead code leftover from r331018. 2020-03-31 01:12:53 +00:00
x86 Improve TSC calibration logic. 2020-04-15 22:28:51 +00:00
xdr Split XDR into separate kernel module. Make krpc depend on xdr. 2020-04-17 06:04:20 +00:00
xen Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (16 of many) 2020-02-25 19:04:39 +00:00
Makefile Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00