1
0
Fork 0
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:
Stefan Lankes 2015-10-18 20:26:07 +02:00
parent 32fdb72595
commit b7944b2cb4

View file

@ -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));
}