Skip to content

Instantly share code, notes, and snippets.

@piotrmaslanka
Last active April 19, 2021 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piotrmaslanka/e63e830f1abc8e4e6958b8d79fdcfc97 to your computer and use it in GitHub Desktop.
Save piotrmaslanka/e63e830f1abc8e4e6958b8d79fdcfc97 to your computer and use it in GitHub Desktop.
A cpuid.h replacement for POWER8
/*
* Copyright (C) 2021 Dronehub Group sp. z o. o.
*
* This file is free software; you can redistribute it and/or modify it
* under the terms of the MIT license.
*/
#ifndef _CPUID_H_INCLUDED
#define _CPUID_H_INCLUDED
static __inline int
__get_cpuid (unsigned int __leaf,
unsigned int *__eax, unsigned int *__ebx,
unsigned int *__ecx, unsigned int *__edx)
{
*__eax=0;
*__ebx=0;
*__ecx=0;
*__edx=0;
return 1;
}
#endif /* _CPUID_H_INCLUDED */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment