diff options
author | Andrew Kaster <akaster@serenityos.org> | 2021-05-31 09:25:40 -0600 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-31 17:29:09 +0100 |
commit | b3746f97450e8972556daae6afb6d33a9e3516c9 (patch) | |
tree | f55561e3c0708b6339abd0bf3333dba3511bcaef /Kernel/PCI/Device.cpp | |
parent | a10ad24c760bfe713f1493e49dff7da16d14bf39 (diff) | |
download | serenity-b3746f97450e8972556daae6afb6d33a9e3516c9.zip |
AK: Guard inline assembly with ARCH(I386) and provide alternative
For non-x86 targets, it's not very nice to define inline functions in
AK/Memory.h with asm volatile implementations. Guard this inline
assembly with ARCH(I386) and provide portable alternatives. Since we
always compile with optimizations, the hand-vectorized memset and
memcpy seem to be of dubious value, but we'll keep them here until
proven one way or another.
This should fix the Lagom build on native M1 macOS that was reported
on Discord the other day.
Diffstat (limited to 'Kernel/PCI/Device.cpp')
0 files changed, 0 insertions, 0 deletions