Re: [PATCH v1] riscv: Add jump-label implementation

2020-07-08 Thread Emil Renner Berthing
On Wed, 8 Jul 2020 at 09:42, Björn Töpel wrote: > > On Tue, 7 Jul 2020 at 17:08, Emil Renner Berthing wrote: > > > > Add jump-label implementation based on the ARM64 version. > > > > Tested on the HiFive Unleashed board. > > > > I took your patch for a spin on qemu. The boot selftest > (CONFIG_ST

Re: [PATCH v1] riscv: Add jump-label implementation

2020-07-08 Thread Emil Renner Berthing
On Wed, 8 Jul 2020 at 08:28, Björn Töpel wrote: > On Tue, 7 Jul 2020 at 17:08, Emil Renner Berthing wrote: > > > > Add jump-label implementation based on the ARM64 version. > > > > Thanks for working on this! > > > Tested on the HiFive Unleashed board. > > > > Signed-off-by: Emil Renner Berthing

Re: [PATCH v1] riscv: Add jump-label implementation

2020-07-08 Thread Björn Töpel
On Tue, 7 Jul 2020 at 17:08, Emil Renner Berthing wrote: > > Add jump-label implementation based on the ARM64 version. > > Tested on the HiFive Unleashed board. > I took your patch for a spin on qemu. The boot selftest (CONFIG_STATIC_KEYS_SELFTEST=y) passes, but the module test (CONFIG_TEST_STATI

Re: [PATCH v1] riscv: Add jump-label implementation

2020-07-08 Thread Björn Töpel
On Tue, 7 Jul 2020 at 17:08, Emil Renner Berthing wrote: > > Add jump-label implementation based on the ARM64 version. > > Tested on the HiFive Unleashed board. > > Signed-off-by: Emil Renner Berthing > --- > > Changes since RFC: > - Use RISCV_PTR and RISCV_LGPTR macros to match struct jump_table

Re: [PATCH v1] riscv: Add jump-label implementation

2020-07-07 Thread Björn Töpel
On Tue, 7 Jul 2020 at 17:08, Emil Renner Berthing wrote: > > Add jump-label implementation based on the ARM64 version. > Thanks for working on this! > Tested on the HiFive Unleashed board. > > Signed-off-by: Emil Renner Berthing > --- > > Changes since RFC: > - Use RISCV_PTR and RISCV_LGPTR mac

[PATCH v1] riscv: Add jump-label implementation

2020-07-07 Thread Emil Renner Berthing
Add jump-label implementation based on the ARM64 version. Tested on the HiFive Unleashed board. Signed-off-by: Emil Renner Berthing --- Changes since RFC: - Use RISCV_PTR and RISCV_LGPTR macros to match struct jump_table also in 32bit kernels. - Remove unneeded branch ? 1 : 0, thanks Björn -