Commit cfa41e2
ML-KEM: check CPU features before calling kyber_rvv_selector
On RISC-V platforms without V, kyber_rvv_selector is called first in
__attribute__((constructor)) before the normal dynamic dispatch code in
kyber_kem_api_riscv.c, causing SIGILL. Add a condition so that
lc_cpu_feature_available() is always first checked.
Signed-off-by: Eric Long <i@hack3r.moe>
Signed-off-by: Stephan Mueller <smueller@chronox.de>1 parent fd71be5 commit cfa41e2
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
0 commit comments