27/10/2020 15:59, Liang Ma:
> +static inline uint64_t
> +__get_umwait_val(const volatile void *p, const uint8_t sz)
> +{
> + switch (sz) {
> + case sizeof(uint8_t):
> + return *(const volatile uint8_t *)p;
> + case sizeof(uint16_t):
> + return *(const v
Add two new power management intrinsics, and provide an implementation
in eal/x86 based on UMONITOR/UMWAIT instructions. The instructions
are implemented as raw byte opcodes because there is not yet widespread
compiler support for these instructions.
The power management instructions provide an ar
2 matches
Mail list logo