Make ELF kernel boot faster
This commit is contained in:
parent
c9f65d5ae6
commit
f4ffbc6072
1 changed files with 3 additions and 12 deletions
|
@ -40,6 +40,9 @@
|
|||
#define mb_save_phymem(buf, phy, len) \
|
||||
phys_copy((u32_t)(buf), (phy), (len))
|
||||
|
||||
#define mb_clear_memrange(start, end) \
|
||||
phys_memset((start), 0, (end)-(start))
|
||||
|
||||
PRIVATE void mb_itoa(u32_t val, char * out)
|
||||
{
|
||||
char ret[ITOA_BUFFER_SIZE];
|
||||
|
@ -351,18 +354,6 @@ PRIVATE void get_parameters(multiboot_info_t *mbi)
|
|||
}
|
||||
}
|
||||
|
||||
PRIVATE int mb_clear_memrange(phys_bytes start, phys_bytes end)
|
||||
{
|
||||
int empty = 0;
|
||||
int i;
|
||||
|
||||
/* FIXME: use faster function */
|
||||
for (i = start; i < end; i++)
|
||||
phys_copy((phys_bytes)&empty, i, 1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
PRIVATE void mb_extract_image(multiboot_info_t mbi)
|
||||
{
|
||||
multiboot_module_t *mb_module_info;
|
||||
|
|
Loading…
Reference in a new issue