multiboot

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MemoryAvailable = 1 << iota
	MemoryReserved
	MemoryACPIReclaimable
	MemoryNVS
	MemoryBadRAM
)

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

func Init

func Init(magic uintptr, mbiptr uintptr)

Types

type Flag

type Flag uint32
const (
	FlagInfoMemory Flag = 1 << iota
	FlagInfoBootDev
	FlagInfoCmdline
	FlagInfoMods
	FlagInfoAoutSyms
	FlagInfoElfSHDR
	FlagInfoMemMap
	FlagInfoDriveInfo
	FlagInfoConfigTable
	FlagInfoBootLoaderName
	FlagInfoAPMTable
	FlagInfoVideoInfo
	FlagInfoFrameBuffer
)

type Info

type Info struct {
	Flags    Flag
	MemLower uint32
	MemUpper uint32

	BootDevice uint32

	Cmdline uint32

	ModsCount uint32
	ModsAddr  uint32

	Syms [4]uint32

	MmapLength uint32
	MmapAddr   uint32

	DriversLength uint32
	DrivesrAddr   uint32

	ConfigTable uint32

	BootLoaderName uint32

	APMTable uint32

	VBEControlInfo  uint32
	VBEModeInfo     uint32
	VBEMode         uint16
	VBEInterfaceSeg uint16
	VBEInterfaceOff uint16
	VBEInterfaceLen uint16

	FramebufferAddr   uint64
	FramebufferPitch  uint32
	FramebufferWidth  uint32
	FramebufferHeight uint32
	FramebufferBPP    byte
	FramebufferType   byte
	ColorInfo         [6]byte
}

Info represents the Multiboot v1 info passed to the loaded kernel.

var (
	BootInfo Info
)

func (*Info) MmapEntries

func (i *Info) MmapEntries() []MmapEntry

type MmapEntry

type MmapEntry struct {
	Size uint32
	Addr uint64
	Len  uint64
	Type uint32
}

Jump to

Keyboard shortcuts

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