Help us shape the future of Go! Take the 2026 Go Developer Survey

microcode

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDatasize  = 2000
	DefaultTotalSize = 2048
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtendedSigTable

type ExtendedSigTable struct {
	Count    uint32
	Checksum uint32
	Reserved [3]uint32
}

type ExtendedSignature

type ExtendedSignature struct {
	Signature      uint32
	ProcessorFlags uint32
	Checksum       uint32
}

func (*ExtendedSignature) String

func (e *ExtendedSignature) String() string
type Header struct {
	HeaderVersion            uint32 // must be 0x1
	HeaderRevision           uint32
	HeaderDate               uint32 // packed BCD, MMDDYYYY
	HeaderProcessorSignature uint32
	HeaderChecksum           uint32
	HeaderLoaderRevision     uint32
	HeaderProcessorFlags     uint32
	HeaderDataSize           uint32 // 0 means 2000
	HeaderTotalSize          uint32 // 0 means 2048
	Reserved1                [3]uint32
}

type Microcode

type Microcode struct {
	Header
	Data               []byte
	ExtSigTable        ExtendedSigTable
	ExtendedSignatures []ExtendedSignature
}

func ParseIntelMicrocode

func ParseIntelMicrocode(r io.Reader) (*Microcode, error)

ParseIntelMicrocode parses the Intel microcode update

func (*Microcode) String

func (m *Microcode) String() string

Jump to

Keyboard shortcuts

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