mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
remove static initialization of BSS section, will be triggerd on demand
This commit is contained in:
parent
c3a4a6e2df
commit
016a206fbd
1 changed files with 2 additions and 1 deletions
|
@ -309,7 +309,8 @@ static int load_kernel(uint8_t* mem, char* path)
|
|||
ret = pread_in_full(fd, mem+paddr-GUEST_OFFSET, filesz, offset);
|
||||
if (ret < 0)
|
||||
goto out;
|
||||
memset(mem+paddr+filesz-GUEST_OFFSET, 0x00, memsz - filesz);
|
||||
//if (memsz - filesz > 0)
|
||||
// memset(mem+paddr+filesz-GUEST_OFFSET, 0x00, memsz - filesz);
|
||||
if (!klog)
|
||||
klog = mem+paddr+0x5000-GUEST_OFFSET;
|
||||
if (!mboot)
|
||||
|
|
Loading…
Add table
Reference in a new issue