git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@546 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-01 05:14:03 +00:00
parent 0b5463e1d1
commit db98104aa0
9 changed files with 32 additions and 23 deletions

View File

@@ -47,7 +47,7 @@ static cpuFeatures getCPUFeatures(void) {
__asm {
cpuid
mov _eax, eax
mov _edx, edx
// mov _edx, edx
}
#else
__asm__ __volatile__(

View File

@@ -29,6 +29,7 @@ struct _cpuFeatures {
MwBool pse36 : 1; /* 36-Bit Page Size Extension */
MwBool psn : 1; /* Processor Serial Number */
MwBool clflush : 1; /* CLFLUSH instr */
MwBool pad1 : 1;
MwBool ds : 1; /* Debug Store */
MwBool acpi : 1; /* Thermal Monitor and Software Controlled Clock Facilities */
MwBool mmx : 1; /* Intel MMX Technology */
@@ -38,6 +39,7 @@ struct _cpuFeatures {
MwBool ss : 1; /* Self Snoop */
MwBool hit : 1; /* Max APIC IDs */
MwBool tm : 1; /* Thermal Monitor */
MwBool pad2 : 1;
MwBool pbe : 1; /* Pending Break Enable */
};
#endif