mirror of
https://gitlab.com/bztsrc/bootboot.git
synced 2023-02-13 20:54:32 -05:00
Minor fixes
This commit is contained in:
parent
d3766199d3
commit
9315889381
4 changed files with 4 additions and 3 deletions
BIN
dist/bootboot.efi
vendored
BIN
dist/bootboot.efi
vendored
Binary file not shown.
BIN
dist/bootboot.rom
vendored
BIN
dist/bootboot.rom
vendored
Binary file not shown.
|
@ -1374,8 +1374,9 @@ LoadCore()
|
|||
DBG(L" * bootboot @%lx\n", bb_addr);
|
||||
DBG(L" * environment @%lx\n", env_addr);
|
||||
DBG(L" * Entry point @%lx, text @%lx %d bytes\n",entrypoint, core.ptr, core.size);
|
||||
if(initstack != 1024)
|
||||
if(initstack != 1024) {
|
||||
DBG(L" * Stack size %ld bytes per core\n", initstack);
|
||||
}
|
||||
core.size = ((core.size+PAGESIZE-1)/PAGESIZE)*PAGESIZE;
|
||||
return EFI_SUCCESS;
|
||||
|
||||
|
|
|
@ -294,8 +294,8 @@ file_t ech_initrd(unsigned char *initrd_p, char *kernel)
|
|||
if(initrd_p==NULL || kernel==NULL || CompareMem(initrd_p+4,"_ECH_FS_",8))
|
||||
return ret;
|
||||
DBG(L" * EchFS %s\n",a2u(kernel));
|
||||
memcpy(&k, initrd_p + 28, 4);
|
||||
memcpy(&n, initrd_p + 12, 8);
|
||||
CopyMem(&k, initrd_p + 28, 4);
|
||||
CopyMem(&n, initrd_p + 12, 8);
|
||||
ptr = initrd_p + (((n * 8 + k - 1) / k) + 16) * k;
|
||||
for(end = fn = kernel; *end && *end != '/'; end++);
|
||||
while(*((UINT64*)ptr)) {
|
||||
|
|
Loading…
Reference in a new issue