Page MenuHomeFreeBSD

Convert arm's physmem interface to MI code
ClosedPublic

Authored by mhorne on Mar 22 2020, 6:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 22, 2:30 AM
Unknown Object (File)
Mon, May 20, 3:28 AM
Unknown Object (File)
Thu, May 2, 6:12 AM
Unknown Object (File)
Fri, Apr 26, 6:05 AM
Unknown Object (File)
Thu, Apr 25, 11:41 PM
Unknown Object (File)
Thu, Apr 25, 10:56 PM
Unknown Object (File)
Apr 3 2024, 3:37 PM
Unknown Object (File)
Mar 29 2024, 1:50 PM

Details

Summary

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_kernaddr 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.
Test Plan

Compile and boot on armv7
Compile and boot on riscv
Compile on arm64

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30044
Build 27855: arc lint + arc unit