# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2026-06-05 06:37+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "PR_RISCV_SET_ICACHE_FLUSH_CTX" msgstr "" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "PR_RISCV_SET_ICACHE_FLUSH_CTX - enable/disable icache flushing instructions " "in userspace" msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B<#include Elinux/prctl.hE> /* Definition of B constants */\n" "B<#include Esys/prctl.hE>\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "BI\n" "B< unsigned long >IB<);>\n" msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The context and the scope can be provided using I and I " "respectively." msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "When I is set to B all threads in the " "process are permitted to emit icache flushing instructions. Whenever any " "thread in the process is migrated, the corresponding hart's icache will be " "guaranteed to be consistent with instruction storage. This does not enforce " "any guarantees outside of migration. If a thread modifies an instruction " "that another thread may attempt to execute, the other thread must still emit " "an icache flushing instruction before attempting to execute the potentially " "modified instruction. This must be performed by the user-space program." msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "In per-thread context (i.e., I is set to " "B) only the thread calling this function is " "permitted to emit icache flushing instructions. When the thread is " "migrated, the corresponding hart's icache will be guaranteed to be " "consistent with instruction storage." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On kernels configured without SMP, this prctl " "B is a nop as migrations across harts will " "not occur." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "The following values for I can be specified:" msgstr "" #. type: TP #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 6.10)" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Allow fence.i in user space." msgstr "" #. type: TP #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 6.10)" msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Disallow fence.i in user space. All threads in a process will be affected " "when I is set to B. Therefore, caution " "must be taken; use this flag only when you can guarantee that no thread in " "the process will emit fence.i from this point onward." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "The following values for I can be specified:" msgstr "" #. type: TP #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 6.10)" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Ensure the icache of any thread in this process is coherent with instruction " "storage upon migration." msgstr "" #. type: TP #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 6.10)" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Ensure the icache of the current thread is coherent with instruction storage " "upon migration." msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The following files are meant to be compiled and linked with each other. " "The modify_instruction() function replaces an add with zero with an add with " "one, causing the instruction sequence in get_value() to change from " "returning a zero to returning a one." msgstr "" #. type: SS #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source: cmodx.c" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "#include Estdio.hE\n" "#include Esys/prctl.hE\n" "\\&\n" "extern int get_value(void);\n" "extern void modify_instruction(void);\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int value = get_value();\n" "\\&\n" " printf(\"Value before cmodx: %d\\[rs]n\", value);\n" "\\&\n" " // Call prctl before first fence.i is called\n" " prctl(PR_RISCV_SET_ICACHE_FLUSH_CTX, PR_RISCV_CTX_SW_FENCEI_ON,\n" " PR_RISCV_SCOPE_PER_PROCESS);\n" "\\&\n" " modify_instruction();\n" "\\&\n" " // Call prctl after final fence.i is called in process\n" " prctl(PR_RISCV_SET_ICACHE_FLUSH_CTX, PR_RISCV_CTX_SW_FENCEI_OFF,\n" " PR_RISCV_SCOPE_PER_PROCESS);\n" "\\&\n" " value = get_value();\n" " printf(\"Value after cmodx: %d\\[rs]n\", value);\n" " return 0;\n" "}\n" msgstr "" #. SRC END #. type: SS #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source: cmodx.S" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\&.option norvc\n" "\\&\n" "\\&.text\n" "\\&.global modify_instruction\n" "modify_instruction:\n" "lw a0, new_insn\n" "lui a5,%hi(old_insn)\n" "sw a0,%lo(old_insn)(a5)\n" "fence.i\n" "ret\n" "\\&\n" "\\&.section modifiable, \"awx\"\n" "\\&.global get_value\n" "get_value:\n" "li a0, 0\n" "old_insn:\n" "addi a0, a0, 0\n" "ret\n" "\\&\n" "\\&.data\n" "new_insn:\n" "addi a0, a0, 1\n" msgstr "" #. type: SS #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Expected result" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "Value before cmodx: 0\n" "Value after cmodx: 1\n" msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "Linux. RISC-V only." msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "" #. type: TP #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux 6.10 (RISC-V)." msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "B(2)" msgstr "" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-07-23" msgstr "" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "" #. type: Plain text #: fedora-44 fedora-rawhide msgid "" "PR_RISCV_SET_ICACHE_FLUSH_CTX - Enable/disable icache flushing instructions " "in userspace." msgstr "" #. type: Plain text #: fedora-44 fedora-rawhide msgid "" "When scope is set to B all threads in the " "process are permitted to emit icache flushing instructions. Whenever any " "thread in the process is migrated, the corresponding hart's icache will be " "guaranteed to be consistent with instruction storage. This does not enforce " "any guarantees outside of migration. If a thread modifies an instruction " "that another thread may attempt to execute, the other thread must still emit " "an icache flushing instruction before attempting to execute the potentially " "modified instruction. This must be performed by the user-space program." msgstr "" #. type: Plain text #: fedora-44 fedora-rawhide msgid "" "In per-thread context (eg. scope is set to B) " "only the thread calling this function is permitted to emit icache flushing " "instructions. When the thread is migrated, the corresponding hart's icache " "will be guaranteed to be consistent with instruction storage." msgstr "" #. type: Plain text #: fedora-44 fedora-rawhide msgid "" "Disallow fence.i in user space. All threads in a process will be affected " "when scope is set to B. Therefore, caution must " "be taken; use this flag only when you can guarantee that no thread in the " "process will emit fence.i from this point onward." msgstr "" #. type: Plain text #: fedora-44 fedora-rawhide msgid "Linux. RISC-V only." msgstr "" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr ""