My Project
Loading...
Searching...
No Matches
kernel.h File Reference
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdatomic.h>
#include "includes/mtos.h"
#include "assert.h"
#include "intrinsics/intrin.h"
#include "filesystem/fat32/fat32.h"
#include "includes/stdarg_myos.h"
#include "drivers/blk/block.h"
#include "drivers/ahci/ahci.h"
#include "drivers/gop/gop.h"
#include "time.h"
#include "filesystem/vfs/vfs.h"
#include "includes/behavior.h"

Go to the source code of this file.

Macros

#define UNREFERENCED_PARAMETER(x)
 #define CAUSE_BUGCHECK
#define gop_printf_forced(color, fmt, ...)

Functions

 __attribute__ ((noreturn)) void __stack_chk_fail(void)
void kernel_idle_checks (void)
void kernel_main (BOOT_INFO *boot_info)
void copy_memory_map (BOOT_INFO *boot_info)
void copy_gop (BOOT_INFO *boot_info)
void init_boot_info (BOOT_INFO *boot_info)

Variables

bool isBugChecking

Macro Definition Documentation

◆ gop_printf_forced

#define gop_printf_forced ( color,
fmt,
... )
Value:
gop_printf(color, fmt, ##__VA_ARGS__)
void gop_printf(uint32_t color, const char *fmt,...)
Definition gop.c:694

Definition at line 58 of file kernel.h.

◆ UNREFERENCED_PARAMETER

#define UNREFERENCED_PARAMETER ( x)
Value:
(void)(x)

#define CAUSE_BUGCHECK

#define REMINDER

Definition at line 37 of file kernel.h.

Function Documentation

◆ __attribute__()

__attribute__ ( (noreturn) )

Remember that paging is on when this is called, as UEFI turned it on.

Definition at line 180 of file kernel.c.

◆ copy_gop()

void copy_gop ( BOOT_INFO * boot_info)

Definition at line 61 of file kernel.c.

◆ copy_memory_map()

void copy_memory_map ( BOOT_INFO * boot_info)

Definition at line 45 of file kernel.c.

◆ init_boot_info()

void init_boot_info ( BOOT_INFO * boot_info)

Definition at line 72 of file kernel.c.

◆ kernel_idle_checks()

void kernel_idle_checks ( void )

Definition at line 100 of file kernel.c.

◆ kernel_main()

void kernel_main ( BOOT_INFO * boot_info)

Variable Documentation

◆ isBugChecking

bool isBugChecking
extern

Global variables initialization

Definition at line 19 of file kernel.c.