Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
init.h File Reference
#include "hal/graphic/framebuffer.h"
#include "init/initrd.h"
#include "memory/entry.h"

Go to the source code of this file.

Data Structures

struct  memory_context_t
 
struct  init_context_t
 

Macros

#define MAX_MEMORY_ENTRIES   256
 
#define INIT(fn)
 
#define INFLOOP
 

Typedefs

typedef void(* initcall_t) (init_context_t *ctx)
 

Macro Definition Documentation

◆ INFLOOP

#define INFLOOP
Value:
for (;;) \
__asm__ volatile("hlt");

Definition at line 32 of file init.h.

Referenced by __attribute__(), __attribute__(), and sch_restore_to_next_thread().

◆ INIT

#define INIT ( fn)
Value:
void init##fn(__attribute__((unused)) init_context_t* ctx); \
static initcall_t __init_##fn \
__attribute__((used, section(".init_early." #fn))) = init##fn; \
void init##fn(__attribute__((unused)) init_context_t* ctx)
boolean_t used
Definition ehci.hpp:6
typedef __attribute__
Definition msi.c:47
void(* initcall_t)(init_context_t *ctx)
Definition init.h:24

Definition at line 26 of file init.h.

◆ MAX_MEMORY_ENTRIES

#define MAX_MEMORY_ENTRIES   256

Definition at line 8 of file init.h.

Referenced by build_context_from_stivale2().

Typedef Documentation

◆ initcall_t

typedef void(* initcall_t) (init_context_t *ctx)

Definition at line 24 of file init.h.