Page MenuHomeFreeBSD

RISC-V: announce real and available memory at boot
ClosedPublic

Authored by mhorne on Jun 1 2019, 7:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 10 2024, 7:03 AM
Unknown Object (File)
Nov 18 2024, 6:37 PM
Unknown Object (File)
Oct 12 2024, 8:40 AM
Unknown Object (File)
Oct 3 2024, 2:02 AM
Unknown Object (File)
Oct 2 2024, 9:38 PM
Unknown Object (File)
Sep 24 2024, 4:00 PM
Unknown Object (File)
Sep 23 2024, 8:18 AM
Unknown Object (File)
Sep 19 2024, 3:38 AM
Subscribers

Details

Summary

Most architectures print their total (real) and available memory during
boot. Properly initialize the realmem global and print these messages.
Also print the physical memory chunks (behind a bootverbose flag).

Test Plan

Sample output:

CPU(0): Unknown Implementer Unknown Processor
real memory  = 2146435072 (2047 MB)
Physical memory chunk(s):
0x00000000809fd000 - 0x00000000809fffff, 12288 bytes (3 pages)
0x0000000080b00000 - 0x00000000fcab2fff, 2080059392 bytes (507827 pages)
avail memory = 2070695936 (1974 MB)

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This revision is now accepted and ready to land.Jun 1 2019, 7:30 PM
This revision was automatically updated to reflect the committed changes.