Subversion Repositories HelenOS

Rev

Rev 2071 | Rev 2692 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2071 Rev 2079
Line 44... Line 44...
44
 
44
 
45
#ifndef __ASM__
45
#ifndef __ASM__
46
 
46
 
47
#include <arch/types.h>
47
#include <arch/types.h>
48
 
48
 
49
struct cpu_info {
49
typedef struct {
50
    uint32_t cpuid_eax;
50
    uint32_t cpuid_eax;
51
    uint32_t cpuid_ebx;
51
    uint32_t cpuid_ebx;
52
    uint32_t cpuid_ecx;
52
    uint32_t cpuid_ecx;
53
    uint32_t cpuid_edx;
53
    uint32_t cpuid_edx;
54
} __attribute__ ((packed));
54
} __attribute__ ((packed)) cpu_info_t;
55
 
55
 
56
extern int has_cpuid(void);
56
extern int has_cpuid(void);
57
 
57
 
58
extern void cpuid(uint32_t cmd, cpu_info_t *info);
58
extern void cpuid(uint32_t cmd, cpu_info_t *info);
59
 
59