Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102092947
D45318.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
879 B
Referenced Files
None
Subscribers
None
D45318.diff
View Options
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -1437,7 +1437,6 @@
* Rebuild physmap one more time, we may have excluded more regions from
* allocation since pmap_bootstrap().
*/
- bzero(physmap, sizeof(physmap));
physmap_idx = physmem_avail(physmap, nitems(physmap));
physmap_idx /= 2;
diff --git a/sys/kern/subr_physmem.c b/sys/kern/subr_physmem.c
--- a/sys/kern/subr_physmem.c
+++ b/sys/kern/subr_physmem.c
@@ -189,6 +189,8 @@
const struct region *exp, *hwp;
uint64_t availsz;
+ bzero(avail, maxavail * sizeof(vm_paddr_t));
+
totalmem = 0;
availmem = 0;
availsz = 0;
@@ -587,7 +589,6 @@
rid = 0;
/* Get the avail list. */
- bzero(avail_list, sizeof(avail_list));
regions_to_avail(avail_list, EXFLAG_NOALLOC | EXFLAG_NODUMP,
PHYS_AVAIL_COUNT, 0, NULL, NULL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 8, 1:01 PM (21 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14535356
Default Alt Text
D45318.diff (879 B)
Attached To
Mode
D45318: physmem: zero entire array
Attached
Detach File
Event Timeline
Log In to Comment