Re: [PATCH v2] powerpc/64: system call implement the bulk of the logic in C

2019-09-04 Thread Nicholas Piggin
Michael Ellerman's on September 5, 2019 2:14 pm: > Nicholas Piggin writes: >> System call entry and particularly exit code is beyond the limit of what >> is reasonable to implement in asm. >> >> This conversion moves all conditional branches out of the asm code, >> except for the case that all GPR

Re: [PATCH v2] powerpc/64: system call implement the bulk of the logic in C

2019-09-04 Thread Michael Ellerman
Nicholas Piggin writes: > System call entry and particularly exit code is beyond the limit of what > is reasonable to implement in asm. > > This conversion moves all conditional branches out of the asm code, > except for the case that all GPRs should be restored at exit. > > Null syscall test is a

[PATCH v2] powerpc/64: system call implement the bulk of the logic in C

2019-09-02 Thread Nicholas Piggin
System call entry and particularly exit code is beyond the limit of what is reasonable to implement in asm. This conversion moves all conditional branches out of the asm code, except for the case that all GPRs should be restored at exit. Null syscall test is about 5% faster after this patch, beca