| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:37+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 21 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "PR_RISCV_SET_ICACHE_FLUSH_CTX" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 41 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 48 |
#: opensuse-tumbleweed |
| 49 |
msgid "" |
| 50 |
"PR_RISCV_SET_ICACHE_FLUSH_CTX - enable/disable icache flushing instructions " |
| 51 |
"in userspace" |
| 52 |
msgstr "" |
| 53 |
|
| 54 |
#. type: SH |
| 55 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 56 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 57 |
#, no-wrap |
| 58 |
msgid "LIBRARY" |
| 59 |
msgstr "" |
| 60 |
|
| 61 |
#. type: Plain text |
| 62 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 63 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 64 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 65 |
msgstr "" |
| 66 |
|
| 67 |
#. type: SH |
| 68 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 69 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 70 |
#, no-wrap |
| 71 |
msgid "SYNOPSIS" |
| 72 |
msgstr "" |
| 73 |
|
| 74 |
#. type: Plain text |
| 75 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 76 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 77 |
#, no-wrap |
| 78 |
msgid "" |
| 79 |
"B<#include E<lt>linux/prctl.hE<gt>> /* Definition of B<PR_*> constants */\n" |
| 80 |
"B<#include E<lt>sys/prctl.hE<gt>>\n" |
| 81 |
msgstr "" |
| 82 |
|
| 83 |
#. type: Plain text |
| 84 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 85 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 86 |
#, no-wrap |
| 87 |
msgid "" |
| 88 |
"B<int prctl(PR_RISCV_SET_ICACHE_FLUSH_CTX, unsigned long >I<ctx,>\n" |
| 89 |
"B< unsigned long >I<scope>B<);>\n" |
| 90 |
msgstr "" |
| 91 |
|
| 92 |
#. type: SH |
| 93 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 94 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
#, no-wrap |
| 96 |
msgid "DESCRIPTION" |
| 97 |
msgstr "" |
| 98 |
|
| 99 |
#. type: Plain text |
| 100 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 101 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 102 |
msgid "" |
| 103 |
"The context and the scope can be provided using I<ctx> and I<scope> " |
| 104 |
"respectively." |
| 105 |
msgstr "" |
| 106 |
|
| 107 |
#. type: Plain text |
| 108 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 109 |
#: opensuse-tumbleweed |
| 110 |
msgid "" |
| 111 |
"When I<scope> is set to B<PR_RISCV_SCOPE_PER_PROCESS> all threads in the " |
| 112 |
"process are permitted to emit icache flushing instructions. Whenever any " |
| 113 |
"thread in the process is migrated, the corresponding hart's icache will be " |
| 114 |
"guaranteed to be consistent with instruction storage. This does not enforce " |
| 115 |
"any guarantees outside of migration. If a thread modifies an instruction " |
| 116 |
"that another thread may attempt to execute, the other thread must still emit " |
| 117 |
"an icache flushing instruction before attempting to execute the potentially " |
| 118 |
"modified instruction. This must be performed by the user-space program." |
| 119 |
msgstr "" |
| 120 |
|
| 121 |
#. type: Plain text |
| 122 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 123 |
#: opensuse-tumbleweed |
| 124 |
msgid "" |
| 125 |
"In per-thread context (i.e., I<scope> is set to " |
| 126 |
"B<PR_RISCV_SCOPE_PER_THREAD>) only the thread calling this function is " |
| 127 |
"permitted to emit icache flushing instructions. When the thread is " |
| 128 |
"migrated, the corresponding hart's icache will be guaranteed to be " |
| 129 |
"consistent with instruction storage." |
| 130 |
msgstr "" |
| 131 |
|
| 132 |
#. type: Plain text |
| 133 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 134 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 135 |
msgid "" |
| 136 |
"On kernels configured without SMP, this prctl " |
| 137 |
"B<PR_RISCV_SET_ICACHE_FLUSH_CTX> is a nop as migrations across harts will " |
| 138 |
"not occur." |
| 139 |
msgstr "" |
| 140 |
|
| 141 |
#. type: Plain text |
| 142 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 143 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 144 |
msgid "The following values for I<ctx> can be specified:" |
| 145 |
msgstr "" |
| 146 |
|
| 147 |
#. type: TP |
| 148 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 149 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 150 |
#, no-wrap |
| 151 |
msgid "B<PR_RISCV_CTX_SW_FENCEI_ON> (since Linux 6.10)" |
| 152 |
msgstr "" |
| 153 |
|
| 154 |
#. type: Plain text |
| 155 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 156 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 157 |
msgid "Allow fence.i in user space." |
| 158 |
msgstr "" |
| 159 |
|
| 160 |
#. type: TP |
| 161 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 162 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 163 |
#, no-wrap |
| 164 |
msgid "B<PR_RISCV_CTX_SW_FENCEI_OFF> (since Linux 6.10)" |
| 165 |
msgstr "" |
| 166 |
|
| 167 |
#. type: Plain text |
| 168 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 169 |
#: opensuse-tumbleweed |
| 170 |
msgid "" |
| 171 |
"Disallow fence.i in user space. All threads in a process will be affected " |
| 172 |
"when I<scope> is set to B<PR_RISCV_SCOPE_PER_PROCESS>. Therefore, caution " |
| 173 |
"must be taken; use this flag only when you can guarantee that no thread in " |
| 174 |
"the process will emit fence.i from this point onward." |
| 175 |
msgstr "" |
| 176 |
|
| 177 |
#. type: Plain text |
| 178 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 179 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 180 |
msgid "The following values for I<scope> can be specified:" |
| 181 |
msgstr "" |
| 182 |
|
| 183 |
#. type: TP |
| 184 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 185 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
#, no-wrap |
| 187 |
msgid "B<PR_RISCV_SCOPE_PER_PROCESS> (since Linux 6.10)" |
| 188 |
msgstr "" |
| 189 |
|
| 190 |
#. type: Plain text |
| 191 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 192 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 193 |
msgid "" |
| 194 |
"Ensure the icache of any thread in this process is coherent with instruction " |
| 195 |
"storage upon migration." |
| 196 |
msgstr "" |
| 197 |
|
| 198 |
#. type: TP |
| 199 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 200 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
#, no-wrap |
| 202 |
msgid "B<PR_RISCV_SCOPE_PER_THREAD> (since Linux 6.10)" |
| 203 |
msgstr "" |
| 204 |
|
| 205 |
#. type: Plain text |
| 206 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 207 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 208 |
msgid "" |
| 209 |
"Ensure the icache of the current thread is coherent with instruction storage " |
| 210 |
"upon migration." |
| 211 |
msgstr "" |
| 212 |
|
| 213 |
#. type: SH |
| 214 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 215 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 216 |
#, no-wrap |
| 217 |
msgid "EXAMPLES" |
| 218 |
msgstr "" |
| 219 |
|
| 220 |
#. type: Plain text |
| 221 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 222 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 223 |
msgid "" |
| 224 |
"The following files are meant to be compiled and linked with each other. " |
| 225 |
"The modify_instruction() function replaces an add with zero with an add with " |
| 226 |
"one, causing the instruction sequence in get_value() to change from " |
| 227 |
"returning a zero to returning a one." |
| 228 |
msgstr "" |
| 229 |
|
| 230 |
#. type: SS |
| 231 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 232 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
#, no-wrap |
| 234 |
msgid "Program source: cmodx.c" |
| 235 |
msgstr "" |
| 236 |
|
| 237 |
#. type: Plain text |
| 238 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 239 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
#, no-wrap |
| 241 |
msgid "" |
| 242 |
"#include E<lt>stdio.hE<gt>\n" |
| 243 |
"#include E<lt>sys/prctl.hE<gt>\n" |
| 244 |
"\\&\n" |
| 245 |
"extern int get_value(void);\n" |
| 246 |
"extern void modify_instruction(void);\n" |
| 247 |
"\\&\n" |
| 248 |
"int\n" |
| 249 |
"main(void)\n" |
| 250 |
"{\n" |
| 251 |
" int value = get_value();\n" |
| 252 |
"\\&\n" |
| 253 |
" printf(\"Value before cmodx: %d\\[rs]n\", value);\n" |
| 254 |
"\\&\n" |
| 255 |
" // Call prctl before first fence.i is called\n" |
| 256 |
" prctl(PR_RISCV_SET_ICACHE_FLUSH_CTX, PR_RISCV_CTX_SW_FENCEI_ON,\n" |
| 257 |
" PR_RISCV_SCOPE_PER_PROCESS);\n" |
| 258 |
"\\&\n" |
| 259 |
" modify_instruction();\n" |
| 260 |
"\\&\n" |
| 261 |
" // Call prctl after final fence.i is called in process\n" |
| 262 |
" prctl(PR_RISCV_SET_ICACHE_FLUSH_CTX, PR_RISCV_CTX_SW_FENCEI_OFF,\n" |
| 263 |
" PR_RISCV_SCOPE_PER_PROCESS);\n" |
| 264 |
"\\&\n" |
| 265 |
" value = get_value();\n" |
| 266 |
" printf(\"Value after cmodx: %d\\[rs]n\", value);\n" |
| 267 |
" return 0;\n" |
| 268 |
"}\n" |
| 269 |
msgstr "" |
| 270 |
|
| 271 |
#. SRC END |
| 272 |
#. type: SS |
| 273 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 274 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
#, no-wrap |
| 276 |
msgid "Program source: cmodx.S" |
| 277 |
msgstr "" |
| 278 |
|
| 279 |
#. type: Plain text |
| 280 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 281 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 282 |
#, no-wrap |
| 283 |
msgid "" |
| 284 |
"\\&.option norvc\n" |
| 285 |
"\\&\n" |
| 286 |
"\\&.text\n" |
| 287 |
"\\&.global modify_instruction\n" |
| 288 |
"modify_instruction:\n" |
| 289 |
"lw a0, new_insn\n" |
| 290 |
"lui a5,%hi(old_insn)\n" |
| 291 |
"sw a0,%lo(old_insn)(a5)\n" |
| 292 |
"fence.i\n" |
| 293 |
"ret\n" |
| 294 |
"\\&\n" |
| 295 |
"\\&.section modifiable, \"awx\"\n" |
| 296 |
"\\&.global get_value\n" |
| 297 |
"get_value:\n" |
| 298 |
"li a0, 0\n" |
| 299 |
"old_insn:\n" |
| 300 |
"addi a0, a0, 0\n" |
| 301 |
"ret\n" |
| 302 |
"\\&\n" |
| 303 |
"\\&.data\n" |
| 304 |
"new_insn:\n" |
| 305 |
"addi a0, a0, 1\n" |
| 306 |
msgstr "" |
| 307 |
|
| 308 |
#. type: SS |
| 309 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 310 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 311 |
#, no-wrap |
| 312 |
msgid "Expected result" |
| 313 |
msgstr "" |
| 314 |
|
| 315 |
#. type: Plain text |
| 316 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 317 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
#, no-wrap |
| 319 |
msgid "" |
| 320 |
"Value before cmodx: 0\n" |
| 321 |
"Value after cmodx: 1\n" |
| 322 |
msgstr "" |
| 323 |
|
| 324 |
#. type: SH |
| 325 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 326 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
#, no-wrap |
| 328 |
msgid "STANDARDS" |
| 329 |
msgstr "" |
| 330 |
|
| 331 |
#. type: Plain text |
| 332 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 333 |
#: opensuse-tumbleweed |
| 334 |
msgid "Linux. RISC-V only." |
| 335 |
msgstr "" |
| 336 |
|
| 337 |
#. type: SH |
| 338 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 339 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 340 |
#, no-wrap |
| 341 |
msgid "HISTORY" |
| 342 |
msgstr "" |
| 343 |
|
| 344 |
#. type: TP |
| 345 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 346 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 347 |
#, no-wrap |
| 348 |
msgid "Linux 6.10 (RISC-V)." |
| 349 |
msgstr "" |
| 350 |
|
| 351 |
#. type: SH |
| 352 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 353 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 354 |
#, no-wrap |
| 355 |
msgid "SEE ALSO" |
| 356 |
msgstr "" |
| 357 |
|
| 358 |
#. type: Plain text |
| 359 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 360 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 361 |
msgid "B<prctl>(2)" |
| 362 |
msgstr "" |
| 363 |
|
| 364 |
#. type: TH |
| 365 |
#: fedora-44 fedora-rawhide |
| 366 |
#, no-wrap |
| 367 |
msgid "2024-07-23" |
| 368 |
msgstr "" |
| 369 |
|
| 370 |
#. type: TH |
| 371 |
#: fedora-44 fedora-rawhide |
| 372 |
#, no-wrap |
| 373 |
msgid "Linux man-pages 6.13" |
| 374 |
msgstr "" |
| 375 |
|
| 376 |
#. type: Plain text |
| 377 |
#: fedora-44 fedora-rawhide |
| 378 |
msgid "" |
| 379 |
"PR_RISCV_SET_ICACHE_FLUSH_CTX - Enable/disable icache flushing instructions " |
| 380 |
"in userspace." |
| 381 |
msgstr "" |
| 382 |
|
| 383 |
#. type: Plain text |
| 384 |
#: fedora-44 fedora-rawhide |
| 385 |
msgid "" |
| 386 |
"When scope is set to B<PR_RISCV_SCOPE_PER_PROCESS> all threads in the " |
| 387 |
"process are permitted to emit icache flushing instructions. Whenever any " |
| 388 |
"thread in the process is migrated, the corresponding hart's icache will be " |
| 389 |
"guaranteed to be consistent with instruction storage. This does not enforce " |
| 390 |
"any guarantees outside of migration. If a thread modifies an instruction " |
| 391 |
"that another thread may attempt to execute, the other thread must still emit " |
| 392 |
"an icache flushing instruction before attempting to execute the potentially " |
| 393 |
"modified instruction. This must be performed by the user-space program." |
| 394 |
msgstr "" |
| 395 |
|
| 396 |
#. type: Plain text |
| 397 |
#: fedora-44 fedora-rawhide |
| 398 |
msgid "" |
| 399 |
"In per-thread context (eg. scope is set to B<PR_RISCV_SCOPE_PER_THREAD>) " |
| 400 |
"only the thread calling this function is permitted to emit icache flushing " |
| 401 |
"instructions. When the thread is migrated, the corresponding hart's icache " |
| 402 |
"will be guaranteed to be consistent with instruction storage." |
| 403 |
msgstr "" |
| 404 |
|
| 405 |
#. type: Plain text |
| 406 |
#: fedora-44 fedora-rawhide |
| 407 |
msgid "" |
| 408 |
"Disallow fence.i in user space. All threads in a process will be affected " |
| 409 |
"when scope is set to B<PR_RISCV_SCOPE_PER_PROCESS>. Therefore, caution must " |
| 410 |
"be taken; use this flag only when you can guarantee that no thread in the " |
| 411 |
"process will emit fence.i from this point onward." |
| 412 |
msgstr "" |
| 413 |
|
| 414 |
#. type: Plain text |
| 415 |
#: fedora-44 fedora-rawhide |
| 416 |
msgid "Linux. RISC-V only." |
| 417 |
msgstr "" |
| 418 |
|
| 419 |
#. type: TH |
| 420 |
#: mageia-cauldron |
| 421 |
#, no-wrap |
| 422 |
msgid "Linux man-pages 6.17" |
| 423 |
msgstr "" |
| 424 |
|
| 425 |
#. type: TH |
| 426 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 427 |
#, no-wrap |
| 428 |
msgid "Linux man-pages (unreleased)" |
| 429 |
msgstr "" |