this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[mldr] Avoid Building/Using x86 Specific Logic On Non-x86 Devices

+6 -1
+6 -1
src/startup/mldr/commpage.c
··· 13 13 14 14 // Include commpage definitions 15 15 #define PRIVATE 16 - #include <i386/cpu_capabilities.h> 16 + #define KERNEL_PRIVATE 1 17 + #include <machine/cpu_capabilities.h> 17 18 18 19 static const char* SIGNATURE32 = "commpage 32-bit"; 19 20 static const char* SIGNATURE64 = "commpage 64-bit"; ··· 88 89 { 89 90 uint64_t caps = 0; 90 91 92 + #if defined(__i386__) || defined(__x86_64__) 91 93 { 92 94 union cpu_flags1 eax; 93 95 union cpu_flags2 ecx; ··· 152 154 if (ebx.sgx) 153 155 caps |= kHasSGX; 154 156 } 157 + #else 158 + #warning "Missing get_cpu_caps implementation" 159 + #endif 155 160 156 161 return caps; 157 162 }