diff options
| author | Samuel Holland <[email protected]> | 2022-05-29 13:25:29 -0500 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-05-30 10:54:31 +0530 |
| commit | ff65bfec4e4fdef31de0871d03f58ca020d6ada2 (patch) | |
| tree | ac6d484bdb22fb3ec3cd82fc6fd0f194007bbaee /lib | |
| parent | 295e5f3c6912bef798e31d6946ba0aacb91f95d0 (diff) | |
lib: sbi_illegal_insn: Constify illegal_insn_table
This table does not need to be modified at runtime.
Signed-off-by: Samuel Holland <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sbi/sbi_illegal_insn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbi/sbi_illegal_insn.c b/lib/sbi/sbi_illegal_insn.c index 388ad55d..386b48a9 100644 --- a/lib/sbi/sbi_illegal_insn.c +++ b/lib/sbi/sbi_illegal_insn.c @@ -88,7 +88,7 @@ static int system_opcode_insn(ulong insn, struct sbi_trap_regs *regs) return 0; } -static illegal_insn_func illegal_insn_table[32] = { +static const illegal_insn_func illegal_insn_table[32] = { truly_illegal_insn, /* 0 */ truly_illegal_insn, /* 1 */ truly_illegal_insn, /* 2 */ |
