mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-02 17:08:56 +00:00
MFppc64:
Check if devices are direct-mapped individually instead of just checking the value of hw_direct_map.
This commit is contained in:
parent
e113db82af
commit
0e8792a1cb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209849
@ -99,11 +99,11 @@ bs_remap_earlyboot(void)
|
||||
int i;
|
||||
vm_offset_t pa, spa;
|
||||
|
||||
if (hw_direct_map)
|
||||
return;
|
||||
|
||||
for (i = 0; i < earlyboot_map_idx; i++) {
|
||||
spa = earlyboot_mappings[i].addr;
|
||||
if (pmap_dev_direct_mapped(spa, earlyboot_mappings[i].size)
|
||||
== 0)
|
||||
continue;
|
||||
|
||||
pa = trunc_page(spa);
|
||||
while (pa < spa + earlyboot_mappings[i].size) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user