diff options
author | Marti Alonso <41269236+martialonso@users.noreply.github.com> | 2025-05-06 02:01:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-05 17:01:39 -0700 |
commit | f349e0801e88757edfa1be4403c452766c65333c (patch) | |
tree | 60973b1ffbd29974ce5fd969d81641b421080028 /v/string.c | |
parent | 6de71edb142be36319e380ce782c3d1830c65d68 (diff) | |
download | env-master.zip env-master.tar.gz env-master.tar.bz2 |
When cputchar was fixed for RV32, virtual memory was not taken into
consideration. If cputchar was called in supervisor mode, with virtual
memory enabled, the pointers given to the HTIF would have wrongfully
been virtual addresses.
Translate pointers to always be physical addresses to support cputchar
with both virtual memory enabled and disabled. Defined macro kaa2pa is
short for 'kernel any address to physical address'.
Diffstat (limited to 'v/string.c')
0 files changed, 0 insertions, 0 deletions