Rename base.img.6pack to base.img.6pk
This commit is contained in:
@ -29,17 +29,17 @@ void baseimg_init(void) {
|
||||
LOG("baseimg", "looking for base image...\n");
|
||||
for (size_t i = 0; i < BOOT_INFO.modules->module_count; i++) {
|
||||
struct limine_file *module = BOOT_INFO.modules->modules[i];
|
||||
if (hal_strcmp(util_get_filename(module->path), "base.img.6pack") == 0) {
|
||||
if (hal_strcmp(util_get_filename(module->path), "base.img.6pk") == 0) {
|
||||
baseimg = module;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (baseimg == NULL) {
|
||||
ERR("baseimg", "base.img.6pack not found\n");
|
||||
ERR("baseimg", "base.img.6pk not found\n");
|
||||
hal_hang();
|
||||
} else {
|
||||
LOG("baseimg", "base.img.6pack found\n");
|
||||
LOG("baseimg", "base.img.6pk found\n");
|
||||
LOG("baseimg", "addr = %p, size = %lu\n", baseimg->address, baseimg->size);
|
||||
for (size_t i = 0; i < 30; i++) {
|
||||
kprintf("%02X ", ((uint8_t *)(baseimg->address))[i]);
|
||||
@ -53,7 +53,7 @@ void baseimg_init(void) {
|
||||
int res = sixpack_decompress_mem(baseimg->address, baseimg->size,
|
||||
BASEIMG_DECOMP_ADDR, BASEIMG_DECOMPRESSED);
|
||||
if (res < 0) {
|
||||
ERR("baseimg", "could not uncompress base.img.6pack\n");
|
||||
ERR("baseimg", "could not uncompress base.img.6pk\n");
|
||||
hal_hang();
|
||||
}
|
||||
BASEIMG_DECOMP_SIZE = res;
|
||||
|
||||
Reference in New Issue
Block a user