The following patches fix some realmode test compatibility issues between gcc and clang. This update should address the comments by Jim Mattson. Re explicitly copying the regs structure, I tried to use the inline asm code you suggested, but wasn't able to get it to work for me. It never seemed to copy the structure correctly. Doing the loop explicitly solved the issue. Bill Wendling (2): x86: realmode: explicitly copy regs structure x86: realmode: fix esp in call test x86/realmode.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) -- 2.23.0.700.g56cf767bdb-goog