StuBS
startup.cc File Reference
#include "startup.h"
#include "types.h"
#include "compiler/libc.h"
#include "debug/output.h"
#include "debug/kernelpanic.h"
#include "interrupt/handler.h"
#include "machine/acpi.h"
#include "machine/apic.h"
#include "machine/core.h"
#include "machine/idt.h"
#include "machine/pic.h"
Include dependency graph for startup.cc:

Functions

void kernel_init ()
 Initializes the C++ environment and detects system components.
 

Constants

static bool is_bootstrap_processor = true
 The first processor is the Bootstrap Processor (BSP)
 

Function Documentation

◆ kernel_init()

void kernel_init ( )

Initializes the C++ environment and detects system components.

The startup code(both for bootstrap and application processor) jumps to this high level function. After initialization it will call main() or main_ap() respectively

Variable Documentation

◆ is_bootstrap_processor

bool is_bootstrap_processor = true
static

The first processor is the Bootstrap Processor (BSP)