mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
remove compiler warnings
This commit is contained in:
parent
32fdb72595
commit
b7944b2cb4
1 changed files with 4 additions and 0 deletions
|
@ -27,6 +27,10 @@
|
|||
#include <ctype.h>
|
||||
#include "rdtsc.h"
|
||||
|
||||
#ifdef __hermit__
|
||||
extern unsigned int get_cpufreq();
|
||||
#endif
|
||||
|
||||
static inline void cpuid(unsigned func, unsigned *eax, unsigned *ebx, unsigned *ecx, unsigned *edx) {
|
||||
__asm__ volatile ("cpuid" : "=a"(*eax), "=b"(*ebx), "=c"(*ecx), "=d"(*edx) : "a"(func));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue