aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc
diff options
context:
space:
mode:
authorMarvin Borner2021-04-05 00:22:15 +0200
committerMarvin Borner2021-04-05 00:22:15 +0200
commitb476dc856431436ac0f3e0179f8a25302421a0cc (patch)
treeac89ab7533db5ebae796ec0f732271afff10c891 /kernel/inc
parent248c0d2fd007eeeb108ff1a88924e3ef8ff84ba4 (diff)
Added new randomization features
Diffstat (limited to 'kernel/inc')
-rw-r--r--kernel/inc/proc.h1
-rw-r--r--kernel/inc/rtc.h21
2 files changed, 22 insertions, 0 deletions
diff --git a/kernel/inc/proc.h b/kernel/inc/proc.h
index 8a172c9..d20a1b0 100644
--- a/kernel/inc/proc.h
+++ b/kernel/inc/proc.h
@@ -10,6 +10,7 @@
#include <sys.h>
#define PROC_QUANTUM 42 // Milliseconds or something // TODO
+#define PROC_STACK_SIZE (1 << 20) // 1MiB
#define EFLAGS_ALWAYS 0x2 // Always one
#define EFLAGS_INTERRUPTS 0x200 // Enable interrupts
diff --git a/kernel/inc/rtc.h b/kernel/inc/rtc.h
new file mode 100644
index 0000000..44a9c9e
--- /dev/null
+++ b/kernel/inc/rtc.h
@@ -0,0 +1,21 @@
+// MIT License, Copyright (c) 2021 Marvin Borner
+
+#ifndef RTC_H
+#define RTC_H
+
+#include <def.h>
+
+struct rtc {
+ u8 second;
+ u8 minute;
+ u8 hour;
+ u8 day;
+ u8 month;
+ u32 year;
+};
+
+struct rtc rtc_read(void);
+u32 rtc_stamp(void);
+CLEAR void rtc_install(void);
+
+#endif