Re: [PATCH 09/31] x86/entry/32: Leave the kernel via trampoline stack

From: Joerg Roedel
Date: Fri Feb 09 2018 - 14:07:02 EST


On Fri, Feb 09, 2018 at 05:43:55PM +0000, Andy Lutomirski wrote:

> The 64-bit code mostly uses a bunch of push instructions for this.

I had it implemented with tons of push instructions first, but that
doesn't work in cases where the stack switch needs to happen only after
everything is copied over.

So I switched to 'rep movsb', which in my eyes also makes the code
easier to understand.


Joerg