Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166625714
D48642.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
904 B
Referenced Files
None
Subscribers
None
D48642.diff
View Options
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -788,10 +788,24 @@
/*
* Add physical memory segments corresponding to the available
- * physical pages.
+ * physical pages. On verbose boot, print the segments and the total
+ * size of their pages.
*/
- for (i = 0; phys_avail[i + 1] != 0; i += 2)
+ if (bootverbose) {
+ printf("%s: Before vm_phys_init():\n", __func__);
+ phys_size = 0;
+ }
+ for (i = 0; phys_avail[i + 1] != 0; i += 2) {
+ if (bootverbose) {
+ phys_size += phys_avail[i + 1] - phys_avail[i];
+ printf("phys_avail[] chunk %d: [%#jx, %#jx).\n",
+ i / 2, (uintmax_t)phys_avail[i],
+ (uintmax_t)phys_avail[i + 1]);
+ }
vm_phys_add_seg(phys_avail[i], phys_avail[i + 1]);
+ }
+ if (bootverbose)
+ printf("phys_size = %#jx.\n", (uintmax_t)phys_size);
/*
* Initialize the physical memory allocator.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 15, 11:40 PM (18 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36806955
Default Alt Text
D48642.diff (904 B)
Attached To
Mode
D48642: vm_page_startup(): Print phys_avail[] before vm_phys_init() on verbose boot
Attached
Detach File
Event Timeline
Log In to Comment