stuff2
This commit is contained in:
@@ -53,7 +53,7 @@ void hpet_init() {
|
||||
|
||||
uacpi_setup_early_table_access(table_buf, sizeof(table_buf));
|
||||
uacpi_table table = {0};
|
||||
ASSERT(!uacpi_table_find_by_signature("HPET", &table), "HPET table not found!\n");
|
||||
assert(!uacpi_table_find_by_signature("HPET", &table), "HPET table not found!\n");
|
||||
|
||||
struct acpi_hpet* hpet = table.ptr;
|
||||
hpet_clock.regs = mmio_new(hpet->address.address, 0x1000);
|
||||
@@ -65,5 +65,5 @@ void hpet_init() {
|
||||
uint64_t caps = hpet_clock.regs[HPET_CAP];
|
||||
hpet_clock.period = (caps >> 32) & 0xFFFF'FFFF;
|
||||
|
||||
ASSERT(clock_switch(&hpet_clock.clock), "Unable to switch to HPET!\n");
|
||||
assert(clock_switch(&hpet_clock.clock), "Unable to switch to HPET!\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user