]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[bitops] Provide an explicit operand size for bit test instructions
authorMichael Brown <mcb30@ipxe.org>
Sat, 27 Feb 2021 15:05:20 +0000 (15:05 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sat, 27 Feb 2021 15:45:31 +0000 (15:45 +0000)
commit16d95227a4b92bba068b43070545b96ce0a90e14
treee07a225e5a96f54c2994d652090d338e22bf9e99
parentb76281a8855632df7cc20ad9174e55e29dc6ce67
[bitops] Provide an explicit operand size for bit test instructions

Recent versions of the GNU assembler (observed with GNU as 2.35 on
Fedora 33) will produce a warning message

  Warning: no instruction mnemonic suffix given and no register
  operands; using default for `bts'

The operand size affects only the potential range for the bit number.
Since we pass the bit number as an unsigned int, it is already
constrained to 32 bits for both i386 and x86_64.

Silence the assembler warning by specifying an explicit 32-bit operand
size (and thereby matching the choice that the assembler would
otherwise make automatically).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/include/bits/bitops.h