Meltdown/Spectre mitigation for 4.15 and beyond
Meltdown/Spectre mitigation for 4.15 and beyond
Posted Jan 16, 2018 11:48 UTC (Tue) by Sesse (subscriber, #53779)In reply to: Meltdown/Spectre mitigation for 4.15 and beyond by Sesse
Parent article: Meltdown/Spectre mitigation for 4.15 and beyond
Ah, to answer my own question, it's in the link: cmp rax, rbx ; sbb rax, rax. CMP sets the carry flag if (rax - rbx) < 0 (CMP and SUB are generally highly related instructions on x86), and SBB subtracts the carry flag.