mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-28 23:54:28 +00:00
set variable kernel by casting with (char*) instead of (unsigned char*)
This commit is contained in:
parent
99efa437be
commit
ddddfeffbb
@ -141,7 +141,7 @@ char* load_kernel(char* path, int bootstrap_size,
|
||||
*size = kernel_size;
|
||||
|
||||
kernel = (char*)malloc_contiguous(kernel_size + PAGE_SIZE + bootstrap_size);
|
||||
kernel = (unsigned char*)(((unsigned long)kernel + PAGE_SIZE) & ~(PAGE_SIZE - 1));
|
||||
kernel = (char*)(((unsigned long)kernel + PAGE_SIZE) & ~(PAGE_SIZE - 1));
|
||||
if (!check_full_in_bank((unsigned long)kernel, kernel_size))
|
||||
error("Kernel between two banks, contact maintainer\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user