Last active
April 19, 2021 16:01
-
-
Save piotrmaslanka/e63e830f1abc8e4e6958b8d79fdcfc97 to your computer and use it in GitHub Desktop.
A cpuid.h replacement for POWER8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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