clang-format set column width to 100 chars
This commit is contained in:
@@ -34,13 +34,9 @@ static void amd64_hpet_write (uint32_t reg, uint64_t value) {
|
||||
*(volatile uint64_t*)(hpet_vaddr + reg) = value;
|
||||
}
|
||||
|
||||
static uint64_t amd64_hpet_timestamp (void) {
|
||||
return amd64_hpet_read (HPET_MCVR);
|
||||
}
|
||||
static uint64_t amd64_hpet_timestamp (void) { return amd64_hpet_read (HPET_MCVR); }
|
||||
|
||||
uint64_t amd64_hpet_current_nano (void) {
|
||||
return amd64_hpet_timestamp () * hpet_clock_nano;
|
||||
}
|
||||
uint64_t amd64_hpet_current_nano (void) { return amd64_hpet_timestamp () * hpet_clock_nano; }
|
||||
|
||||
void amd64_hpet_sleep_micro (uint64_t us) {
|
||||
uint64_t start = amd64_hpet_timestamp ();
|
||||
@@ -51,8 +47,7 @@ void amd64_hpet_sleep_micro (uint64_t us) {
|
||||
|
||||
void amd64_hpet_init (void) {
|
||||
struct uacpi_table hpet_table;
|
||||
uacpi_status status =
|
||||
uacpi_table_find_by_signature (ACPI_HPET_SIGNATURE, &hpet_table);
|
||||
uacpi_status status = uacpi_table_find_by_signature (ACPI_HPET_SIGNATURE, &hpet_table);
|
||||
if (status != UACPI_STATUS_OK) {
|
||||
DEBUG ("Could not find HPET table!\n");
|
||||
amd64_spin ();
|
||||
@@ -62,8 +57,7 @@ void amd64_hpet_init (void) {
|
||||
hpet_paddr = (uintptr_t)hpet->address.address;
|
||||
|
||||
struct limine_hhdm_response* hhdm = limine_hhdm_request.response;
|
||||
mm_map_kernel_page (hpet_paddr, (uintptr_t)hhdm->offset + hpet_paddr,
|
||||
MM_PG_PRESENT | MM_PG_RW);
|
||||
mm_map_kernel_page (hpet_paddr, (uintptr_t)hhdm->offset + hpet_paddr, MM_PG_PRESENT | MM_PG_RW);
|
||||
|
||||
hpet_32bits = (amd64_hpet_read (HPET_GCIDR) & (1 << 13)) ? 0 : 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user