mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Fix lines that are too long in pmap_growkernel() by substituting shorter but
equivalent expressions.
This commit is contained in:
parent
b1d62f0fd7
commit
bb7964b205
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180378
@ -1721,7 +1721,7 @@ pmap_growkernel(vm_offset_t addr)
|
||||
if (KERNBASE < addr && addr <= KERNBASE + NKPT * NBPDR)
|
||||
return;
|
||||
|
||||
addr = roundup2(addr, PAGE_SIZE * NPTEPG);
|
||||
addr = roundup2(addr, NBPDR);
|
||||
if (addr - 1 >= kernel_map->max_offset)
|
||||
addr = kernel_map->max_offset;
|
||||
while (kernel_vm_end < addr) {
|
||||
@ -1742,7 +1742,7 @@ pmap_growkernel(vm_offset_t addr)
|
||||
}
|
||||
pde = pmap_pdpe_to_pde(pdpe, kernel_vm_end);
|
||||
if ((*pde & PG_V) != 0) {
|
||||
kernel_vm_end = (kernel_vm_end + PAGE_SIZE * NPTEPG) & ~(PAGE_SIZE * NPTEPG - 1);
|
||||
kernel_vm_end = (kernel_vm_end + NBPDR) & ~PDRMASK;
|
||||
if (kernel_vm_end - 1 >= kernel_map->max_offset) {
|
||||
kernel_vm_end = kernel_map->max_offset;
|
||||
break;
|
||||
@ -1761,7 +1761,7 @@ pmap_growkernel(vm_offset_t addr)
|
||||
newpdir = (pd_entry_t) (paddr | PG_V | PG_RW | PG_A | PG_M);
|
||||
pde_store(pde, newpdir);
|
||||
|
||||
kernel_vm_end = (kernel_vm_end + PAGE_SIZE * NPTEPG) & ~(PAGE_SIZE * NPTEPG - 1);
|
||||
kernel_vm_end = (kernel_vm_end + NBPDR) & ~PDRMASK;
|
||||
if (kernel_vm_end - 1 >= kernel_map->max_offset) {
|
||||
kernel_vm_end = kernel_map->max_offset;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user