diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2022-04-05 09:13:04 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2022-04-26 22:36:18 +0200 |
commit | 01abdfeac81b5f56062d0a78f2cdc805db937a75 (patch) | |
tree | 1ee65759a7a41655c34ffe005bc3c256e33532b2 /arch/riscv/kernel/sys_riscv.c | |
parent | riscv: compat: Add basic compat data type implementation (diff) | |
download | linux-01abdfeac81b5f56062d0a78f2cdc805db937a75.tar.xz linux-01abdfeac81b5f56062d0a78f2cdc805db937a75.zip |
riscv: compat: Support TASK_SIZE for compat mode
Make TASK_SIZE from const to dynamic detect TIF_32BIT flag
function. Refer to arm64 to implement DEFAULT_MAP_WINDOW_64 for
efi-stub.
Limit 32-bit compatible process in 0-2GB virtual address range
(which is enough for real scenarios), because it could avoid
address sign extend problem when 32-bit enter 64-bit and ease
software design.
The standard 32-bit TASK_SIZE is 0x9dc00000:FIXADDR_START, and
compared to a compatible 32-bit, it increases 476MB for the
application's virtual address.
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20220405071314.3225832-11-guoren@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/kernel/sys_riscv.c')
0 files changed, 0 insertions, 0 deletions