mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 05:38:21 +00:00
kernel: update limine to 11 and use base revision 6
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
|
||||
#define TOTAL_ARGUMENTS_CHARACTER_LIMIT 4096
|
||||
|
||||
static volatile struct limine_kernel_file_request kernel_file_request = {
|
||||
.id = LIMINE_KERNEL_FILE_REQUEST,
|
||||
static volatile struct limine_executable_file_request executable_file_request = {
|
||||
.id = LIMINE_EXECUTABLE_FILE_REQUEST_ID,
|
||||
.revision = 0
|
||||
};
|
||||
|
||||
@@ -43,8 +43,8 @@ static void insert_argument(const char *key, const char *value) {
|
||||
}
|
||||
|
||||
void kernel_arguments_parse(void) {
|
||||
__assert(kernel_file_request.response);
|
||||
const char *cmdline = kernel_file_request.response->kernel_file->cmdline;
|
||||
__assert(executable_file_request.response);
|
||||
const char *cmdline = executable_file_request.response->executable_file->string;
|
||||
__assert(cmdline);
|
||||
size_t length = min(strlen(cmdline), TOTAL_ARGUMENTS_CHARACTER_LIMIT);
|
||||
char temp_buffer[length + 1];
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#include <logging.h>
|
||||
#include <kernel/init.h>
|
||||
|
||||
static volatile struct limine_boot_time_request timereq = {
|
||||
.id = LIMINE_BOOT_TIME_REQUEST,
|
||||
static volatile struct limine_date_at_boot_request timereq = {
|
||||
.id = LIMINE_DATE_AT_BOOT_REQUEST_ID,
|
||||
.revision = 0
|
||||
};
|
||||
|
||||
@@ -135,7 +135,7 @@ void timekeeper_wait_us(time_t us) {
|
||||
|
||||
void timekeeper_early_init(void) {
|
||||
__assert(timereq.response);
|
||||
boot_unix = timereq.response->boot_time;
|
||||
boot_unix = timereq.response->timestamp;
|
||||
|
||||
current_cpu()->timekeeper_sync_isr = interrupt_allocate(timekeeper_sync_isr, ARCH_EOI, IPL_DPC);
|
||||
__assert(current_cpu()->timekeeper_sync_isr);
|
||||
|
||||
Reference in New Issue
Block a user