Do not hand the VM the memory used for stacks/page tables/etc.
This commit is contained in:
parent
4aa25df8dd
commit
3d949b7e8e
@ -341,6 +341,10 @@ initarm(struct arm_boot_params *abp)
|
||||
* Prepare the list of physical memory available to the vm subsystem.
|
||||
*/
|
||||
arm_physmem_hardware_region(IQ80321_SDRAM_START, memsize);
|
||||
arm_physmem_exclude_region(freemem_pt, KERNPHYSADDR -
|
||||
freemem_pt, EXFLAG_NOALLOC);
|
||||
arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 -
|
||||
freemempos, EXFLAG_NOALLOC);
|
||||
arm_physmem_exclude_region(abp->abp_physaddr,
|
||||
virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC);
|
||||
arm_physmem_init_kernel_globals();
|
||||
|
@ -343,6 +343,10 @@ initarm(struct arm_boot_params *abp)
|
||||
* Prepare the list of physical memory available to the vm subsystem.
|
||||
*/
|
||||
arm_physmem_hardware_region(SDRAM_START, memsize);
|
||||
arm_physmem_exclude_region(freemem_pt, KERNPHYSADDR -
|
||||
freemem_pt, EXFLAG_NOALLOC);
|
||||
arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 -
|
||||
freemempos, EXFLAG_NOALLOC);
|
||||
arm_physmem_exclude_region(abp->abp_physaddr,
|
||||
virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC);
|
||||
arm_physmem_init_kernel_globals();
|
||||
|
@ -323,6 +323,10 @@ initarm(struct arm_boot_params *abp)
|
||||
* Prepare the list of physical memory available to the vm subsystem.
|
||||
*/
|
||||
arm_physmem_hardware_region(SDRAM_START, memsize);
|
||||
arm_physmem_exclude_region(freemem_pt, KERNPHYSADDR -
|
||||
freemem_pt, EXFLAG_NOALLOC);
|
||||
arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 -
|
||||
freemempos, EXFLAG_NOALLOC);
|
||||
arm_physmem_exclude_region(abp->abp_physaddr,
|
||||
virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC);
|
||||
arm_physmem_init_kernel_globals();
|
||||
|
@ -413,6 +413,10 @@ initarm(struct arm_boot_params *abp)
|
||||
* Prepare the list of physical memory available to the vm subsystem.
|
||||
*/
|
||||
arm_physmem_hardware_region(PHYSADDR, memsize);
|
||||
arm_physmem_exclude_region(freemem_pt, KERNPHYSADDR -
|
||||
freemem_pt, EXFLAG_NOALLOC);
|
||||
arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 -
|
||||
freemempos, EXFLAG_NOALLOC);
|
||||
arm_physmem_exclude_region(abp->abp_physaddr,
|
||||
virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC);
|
||||
arm_physmem_init_kernel_globals();
|
||||
|
@ -335,6 +335,10 @@ initarm(struct arm_boot_params *abp)
|
||||
if (memsize[j] > 0)
|
||||
arm_physmem_hardware_region(memstart[j], memsize[j]);
|
||||
}
|
||||
arm_physmem_exclude_region(freemem_pt, KERNPHYSADDR -
|
||||
freemem_pt, EXFLAG_NOALLOC);
|
||||
arm_physmem_exclude_region(freemempos, KERNPHYSADDR - 0x100000 -
|
||||
freemempos, EXFLAG_NOALLOC);
|
||||
arm_physmem_exclude_region(abp->abp_physaddr,
|
||||
virtual_avail - KERNVIRTADDR, EXFLAG_NOALLOC);
|
||||
arm_physmem_init_kernel_globals();
|
||||
|
Loading…
x
Reference in New Issue
Block a user