aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-02-10 17:01:27 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2022-02-21 21:14:00 +0100
commitb2f408fe403800c91a49f6589d95b6759ce1b30b (patch)
tree4e26f85070836223d61537c74d7266638954c89b /include
parentrandom: add proper SPDX header (diff)
downloadwireguard-linux-b2f408fe403800c91a49f6589d95b6759ce1b30b.tar.xz
wireguard-linux-b2f408fe403800c91a49f6589d95b6759ce1b30b.zip
random: deobfuscate irq u32/u64 contributions
In the irq handler, we fill out 16 bytes differently on 32-bit and 64-bit platforms, and for 32-bit vs 64-bit cycle counters, which doesn't always correspond with the bitness of the platform. Whether or not you like this strangeness, it is a matter of fact. But it might not be a fact you well realized until now, because the code that loaded the irq info into 4 32-bit words was quite confusing. Instead, this commit makes everything explicit by having separate (compile-time) branches for 32-bit and 64-bit types. Cc: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions