]> www.infradead.org Git - users/jedix/linux-maple.git/commit
documentation: Fix riscv cmodx example
authorCharlie Jenkins <charlie@rivosinc.com>
Sat, 29 Jun 2024 00:25:49 +0000 (17:25 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 1 Jul 2024 17:50:18 +0000 (10:50 -0700)
commit7c5d838d70902f017bc9b272b494994654b0c2bd
treecbc61b82003dc244ede72ba59cea0b1fe051d554
parent22a40d14b572deb80c0648557f4bd502d7e83826
documentation: Fix riscv cmodx example

ON/OFF in the keys was swapped between the first and second argument of
the prctl. The prctl key is always PR_RISCV_SET_ICACHE_FLUSH_CTX, and
the second argument can be PR_RISCV_CTX_SW_FENCEI_ON or
PR_RISCV_CTX_SW_FENCEI_OFF.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Fixes: 6a08e4709c58 ("documentation: Document PR_RISCV_SET_ICACHE_FLUSH_CTX prctl")
Link: https://lore.kernel.org/r/20240628-fix_cmodx_example-v1-1-e6c6523bc163@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Documentation/arch/riscv/cmodx.rst