From 8d78616a2b80c7625c1aa9ca4733e48a8bf8bf22 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 18 Apr 2020 00:07:37 +0200 Subject: Completely reworked ACPI tables I'm too exhausted right now, but I rediscovered the memory mapping issue of my ACPI implementatio and need to fix it ASAP. Otherwise I won't be able to use any ACPI table without causing a page fault. I have no clue why exactly this is happening and the internet says that I shouldn't need to memory map them. Well, I'll look into it later. --- src/kernel/cmos/rtc.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/kernel/cmos/rtc.h') diff --git a/src/kernel/cmos/rtc.h b/src/kernel/cmos/rtc.h index ca80f4f..7604bb1 100644 --- a/src/kernel/cmos/rtc.h +++ b/src/kernel/cmos/rtc.h @@ -1,15 +1,17 @@ #ifndef MELVIX_RTC_H #define MELVIX_RTC_H -unsigned char second; -unsigned char minute; -unsigned char hour; -unsigned char day; -unsigned char month; +#include + +uint8_t second; +uint8_t minute; +uint8_t hour; +uint8_t day; +uint8_t month; unsigned int year; void read_rtc(); -void write_time(); +void rtc_print(); -#endif \ No newline at end of file +#endif -- cgit v1.2.3