kmain

package
v0.0.0-...-1a7aca4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kmain

func Kmain(multibootInfoPtr, kernelStart, kernelEnd, kernelPageOffset uintptr)

Kmain is the only Go symbol that is visible (exported) from the rt0 initialization code. This function is invoked by the rt0 assembly code after setting up the GDT and setting up a a minimal g0 struct that allows Go code using the 4K stack allocated by the assembly code.

The rt0 code passes the address of the multiboot info payload provided by the bootloader as well as the physical addresses for the kernel start/end. In addition, the start of the kernel virtual address space is passed to the kernelPageOffset argument.

Kmain is not expected to return. If it does, the rt0 code will halt the CPU.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL