evaluation order bug in acpi_pic_sci_set_trigger() ?
acpi_pic_sci_set_trigger() contains the following code:
/* Real old ELCR mask */ old = inb(0x4d0) | (inb(0x4d1) << 8);
Operand evalution order is not guaranteed for binary or. I wonder if this is a bug?
Alexey
Rafael J. Wysocki
maintainerQuoted 8 lines · Alexey Dobriyan
acpi_pic_sci_set_trigger()contains the following code:/* Real old ELCR mask */ old = inb(0x4d0) | (inb(0x4d1) << 8);Operand evalution order is not guaranteed for binary or. I wonder if this is a bug?
Does the ordering matter in practice?
Quoted 11 lines · Rafael J. Wysocki
Quoted 8 lines · Alexey Dobriyan
acpi_pic_sci_set_trigger()contains the following code:/* Real old ELCR mask */ old = inb(0x4d0) | (inb(0x4d1) << 8);Operand evalution order is not guaranteed for binary or. I wonder if this is a bug?
Does the ordering matter in practice?
I have no idea, this is why I'm asking. :-)