commit | 94f39e5a80a4208cc7f5bf26743fb811e2d2d5a0 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Mon Feb 21 23:18:20 2022 -0500 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Mar 21 07:28:05 2022 -0400 |
tree | ef1ccf49aa1b8947c27126a80167aae42056cb9a | |
parent | 9ed17943b9e3f4927ce8b9a0c37dbc99b2d1efb9 [diff] |
riscv: fix wrong access width in assembly code The thread->base.user_options field is an uint8_t. Access it using lb. A "copy" of it is made into __esf.fp_state. Make that field an uint8_t too and access it with lb/sb. _callee_saved.fcsr is an uint32_t. Access it with lw/sw. Ditto for is_user_mode. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>