haskus-system-0.7.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.Arch.X86_64.Cpuid

Description

Get processor information with the CPUID instruction

Synopsis

Documentation

data Cpuid Source #

A CPUID context

The parameter is the maximum allowed value

initCpuid :: Cpuid Source #

Initialize a CPUID context

data Feature Source #

type ProcInfo = BitFields Word32 '[BitField 6 "padding" Word8, BitField 8 "extended family" Word8, BitField 4 "extended model" Word8, BitField 2 "proc type" Word8, BitField 4 "family" Word8, BitField 4 "model" Word8, BitField 4 "stepping" Word8] Source #

procInfo :: (ProcInfo, BitSet Word64 Feature) Source #

Processor info and feature bits

procExtFeatures :: BitSet Word64 ExtendedFeature Source #

Processor info and feature bits