akaros/kern/arch/x86/ros/cpu_feat.h
<<
>>
Prefs
   1/* Copyright (c) 2016 Google Inc.
   2 * Barret Rhoden <brho@cs.berkeley.edu>
   3 * See LICENSE for details.
   4 *
   5 * x86 CPU feature detection.
   6 *
   7 * You can add new items as needed.  Changing __NR_CPU_FEAT will require
   8 * a rebuild of the world.  Otherwise, you just need to reinstall kernel
   9 * headers. */
  10
  11#pragma once
  12
  13#define CPU_FEAT_X86_VENDOR_INTEL       (__CPU_FEAT_ARCH_START + 0)
  14#define CPU_FEAT_X86_VENDOR_AMD         (__CPU_FEAT_ARCH_START + 1)
  15#define CPU_FEAT_X86_FXSR               (__CPU_FEAT_ARCH_START + 2)
  16#define CPU_FEAT_X86_XSAVE              (__CPU_FEAT_ARCH_START + 3)
  17#define CPU_FEAT_X86_XSAVEOPT           (__CPU_FEAT_ARCH_START + 4)
  18#define CPU_FEAT_X86_FSGSBASE           (__CPU_FEAT_ARCH_START + 5)
  19#define CPU_FEAT_X86_MWAIT              (__CPU_FEAT_ARCH_START + 6)
  20#define __NR_CPU_FEAT                   (__CPU_FEAT_ARCH_START + 64)
  21