Re: [PATCH v4 3/9] x86/entry: Convert ret_from_fork to C

2021-03-19 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 11:12, Andy Lutomirski wrote: > ret_from_fork is written in asm, slightly differently, for x86_32 and > x86_64. Convert it to C. > +__visible void noinstr ret_from_fork(struct task_struct *prev, > + int (*kernel_thread_fn)(void *), > +

Re: [PATCH v4 3/9] x86/entry: Convert ret_from_fork to C

2021-03-17 Thread Josh Poimboeuf
On Wed, Mar 17, 2021 at 11:12:42AM -0700, Andy Lutomirski wrote: > ret_from_fork is written in asm, slightly differently, for x86_32 and > x86_64. Convert it to C. > > This is a straight conversion without any particular cleverness. As a > further cleanup, the code that sets up the ret_from_fork

[PATCH v4 3/9] x86/entry: Convert ret_from_fork to C

2021-03-17 Thread Andy Lutomirski
ret_from_fork is written in asm, slightly differently, for x86_32 and x86_64. Convert it to C. This is a straight conversion without any particular cleverness. As a further cleanup, the code that sets up the ret_from_fork argument registers could be adjusted to put the arguments in the correct r