SPARC32: mark kernel memory as mapped
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
7238176ecc
commit
c87d0eb00c
|
@ -917,9 +917,10 @@ arch_init( void )
|
|||
if (kernel_size) {
|
||||
kernel_image = fw_cfg_read_i32(FW_CFG_KERNEL_ADDR);
|
||||
|
||||
/* Mark the kernel memory as in use */
|
||||
/* Mark the kernel memory as mapped 1:1 and in use */
|
||||
ofmem_claim_phys(PAGE_ALIGN(kernel_image), PAGE_ALIGN(kernel_size), 0);
|
||||
ofmem_claim_virt(PAGE_ALIGN(kernel_image), PAGE_ALIGN(kernel_size), 0);
|
||||
ofmem_map(PAGE_ALIGN(kernel_image), PAGE_ALIGN(kernel_image), PAGE_ALIGN(kernel_size), -1);
|
||||
}
|
||||
|
||||
kernel_cmdline = (const char *) fw_cfg_read_i32(FW_CFG_KERNEL_CMDLINE);
|
||||
|
|
Loading…
Reference in New Issue