* Read AUXV software register and get cpu features for ARM */
| 123 | * Read AUXV software register and get cpu features for ARM |
| 124 | */ |
| 125 | static void |
| 126 | rte_cpu_get_features(hwcap_registers_t out) |
| 127 | { |
| 128 | out[REG_HWCAP] = rte_cpu_getauxval(AT_HWCAP); |
| 129 | out[REG_HWCAP2] = rte_cpu_getauxval(AT_HWCAP2); |
| 130 | if (!rte_cpu_strcmp_auxval(AT_PLATFORM, PLATFORM_STR)) |
| 131 | out[REG_PLATFORM] = 0x0001; |
| 132 | } |
| 133 | |
| 134 | /* |
| 135 | * Checks if a particular flag is available on current machine. |
no test coverage detected