On Tue, Apr 11, 2017 at 09:02:03AM +0200, Ingo Molnar wrote: > I realize that you had difficulties converting this to C, but it's not going to > get any easier in the future either, with one more paging mode/level added! > > If you are stuck on where it breaks I'd suggest doing it gradually: first add a > trivial .c, build and link it in and call it separately. Then once that works, > move functionality from asm to C step by step and test it at every step. I've described the specific issue with converting this code to C in cover letter: how to make compiler to generate 32-bit code for a specific function or translation unit, without breaking linking afterwards (-m32 break it). I would be glad to convert it, but I'm stuck. Do you have an idea how to get around the issue. -- Kirill A. Shutemov