WKern
Loading...
Searching...
No Matches
main.c File Reference
#include <KShell/shell.h>
#include <err/kerror.h>
#include <fileio/fileio.h>
#include <global.h>
#include <idt/idtirq.h>
#include <io/kio.h>
#include <mem/kmem.h>
#include <net/virtnet.h>
#include <pci/pci.h>
#include <types/bool.h>
#include <utils/util.h>

Go to the source code of this file.

Functions

void KernelMain ()
 Kernel entry point.

Variables

char * name
int row = 0
int col = 0
bool capson = false
bool shift = false
u32 iob = 0

Function Documentation

◆ KernelMain()

void KernelMain ( )

Kernel entry point.

  • Sets up GDT (Grand Descriptor Table)
  • Sets up IDT (Interrupt Descriptor Table)
  • Sets up PIT (Programmable Interval Timer) at 10ms per tick
  • Finds FAT16 Partition on ATA Device
  • Mounts FAT16 Partition
  • Initializes Memory Heap
  • Clears screen
  • Does Virtual Network setup
  • Does login
  • Starts shell
    Returns
    Void - Should never return

Definition at line 51 of file main.c.

Variable Documentation

◆ capson

bool capson = false

Definition at line 34 of file main.c.

◆ col

int col = 0

Definition at line 33 of file main.c.

◆ iob

u32 iob = 0

Definition at line 36 of file main.c.

◆ name

char* name

Definition at line 31 of file main.c.

◆ row

int row = 0

Definition at line 32 of file main.c.

◆ shift

bool shift = false

Definition at line 35 of file main.c.