MOS Source Code
|
#include "mos/filesystem/sysfs/sysfs.h"
#include "mos/filesystem/sysfs/sysfs_autoinit.h"
#include "mos/lib/structures/list.h"
#include "mos/mm/mm.h"
#include "mos/mm/paging/paging.h"
#include "mos/mm/physical/pmm.h"
#include "mos/tasks/elf.h"
#include <mos/device/console.h>
#include <mos/filesystem/vfs.h>
#include <mos/interrupt/ipi.h>
#include <mos/ipc/ipc.h>
#include <mos/lib/cmdline.h>
#include <mos/misc/cmdline.h>
#include <mos/misc/setup.h>
#include <mos/platform/platform.h>
#include <mos/syslog/printk.h>
#include <mos/tasks/kthread.h>
#include <mos/tasks/schedule.h>
#include <mos_stdio.h>
#include <mos_stdlib.h>
#include <mos_string.h>
Go to the source code of this file.
Functions | |
static void | invoke_constructors (void) |
static bool | init_sysfs_argv (sysfs_file_t *file) |
SYSFS_AUTOREGISTER (kernel, kernel_sysfs_items) | |
MOS_SETUP ("init", setup_init_path) | |
MOS_SETUP ("init_args", setup_init_args) | |
void | mos_start_kernel (void) |
Variables | ||
static mm_context_t | mos_kernel_mm | |
struct { | ||
size_t argc | ||
const char ** argv | ||
} | init_args = { 0 } | |
static sysfs_item_t | kernel_sysfs_items [] | |
Definition at line 28 of file kmain.c.
Referenced by mos_start_kernel().
|
static |
SYSFS_AUTOREGISTER | ( | kernel | , |
kernel_sysfs_items | ) |
MOS_SETUP | ( | "init" | , |
setup_init_path | ) |
MOS_SETUP | ( | "init_args" | , |
setup_init_args | ) |
Definition at line 102 of file kmain.c.
Referenced by limine_entry().
|
static |
Definition at line 26 of file kmain.c.
Referenced by mos_start_kernel().
size_t argc |
Definition at line 43 of file kmain.c.
Referenced by elf_fill_process(), main(), main(), mos_test_engine_setup_skip_prefix_list(), platform_context_setup_main_thread(), and process_do_execveat().
const char** argv |
Definition at line 44 of file kmain.c.
Referenced by cmdline_dynamic_array_insert(), elf_create_process(), elf_fill_process(), execveat(), main(), main(), main(), MOS_STATIC_ASSERT(), platform_context_setup_main_thread(), process_do_execveat(), syscall_execveat(), and syscall_spawn().
struct { ... } init_args |
Referenced by init_sysfs_argv(), MOS_SETUP(), MOS_SETUP(), and mos_start_kernel().
|
static |