mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-07 13:54:29 +00:00
don't allocate contiguous if not needed
This commit is contained in:
parent
718d985bda
commit
e2bbff5a94
@ -107,11 +107,13 @@ int start(emile_l2_header_t* info)
|
|||||||
BI_ALLOC_SIZE +
|
BI_ALLOC_SIZE +
|
||||||
end_enter_kernel - enter_kernel + 4);
|
end_enter_kernel - enter_kernel + 4);
|
||||||
else
|
else
|
||||||
kernel_image_start = (unsigned long)malloc_contiguous(
|
kernel_image_start = (unsigned long)malloc(
|
||||||
info->kernel_image_size + 4);
|
info->kernel_image_size + 4);
|
||||||
|
|
||||||
kernel_image_start = (kernel_image_start + 3) & 0xFFFFFFFC;
|
kernel_image_start = (kernel_image_start + 3) & 0xFFFFFFFC;
|
||||||
printf("Kernel image base at 0x%lx\n", kernel_image_start);
|
printf("Kernel image base at 0x%lx\n", kernel_image_start);
|
||||||
|
if (kernel_image_start == 0)
|
||||||
|
error("Cannot allocate memory\n");
|
||||||
|
|
||||||
/* load kernel */
|
/* load kernel */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user