Big code refactor, get rid of HAL entirely
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <limine.h>
|
||||
#include "baseimg.h"
|
||||
#include "baseimg/baseimg.h"
|
||||
#include "bootinfo/bootinfo.h"
|
||||
#include "kprintf.h"
|
||||
#include "util/util.h"
|
||||
#include "hal/hal.h"
|
||||
#include "dlmalloc/malloc.h"
|
||||
#include "FastLZ/fastlz.h"
|
||||
#include "FastLZ/6unpack_mem.h"
|
||||
#include "std/string.h"
|
||||
#include "cpu/hang.h"
|
||||
#include "kprintf.h"
|
||||
|
||||
#define BASEIMG_DECOMPRESSED (1024*1024*4)
|
||||
|
||||
@ -38,7 +38,7 @@ void baseimg_init(void) {
|
||||
|
||||
if (baseimg == NULL) {
|
||||
ERR("baseimg", "base.img.6pk not found\n");
|
||||
hal_hang();
|
||||
cpu_hang();
|
||||
} else {
|
||||
LOG("baseimg", "base.img.6pk found\n");
|
||||
LOG("baseimg", "addr = %p, size = %lu\n", baseimg->address, baseimg->size);
|
||||
@ -55,7 +55,7 @@ void baseimg_init(void) {
|
||||
BASEIMG_DECOMP_ADDR, BASEIMG_DECOMPRESSED);
|
||||
if (res < 0) {
|
||||
ERR("baseimg", "could not uncompress base.img.6pk\n");
|
||||
hal_hang();
|
||||
cpu_hang();
|
||||
}
|
||||
BASEIMG_DECOMP_SIZE = res;
|
||||
kprintf("%p %zu\n", BASEIMG_DECOMP_ADDR, BASEIMG_DECOMP_SIZE);
|
||||
|
||||
Reference in New Issue
Block a user