diff options
author | Guo Ren <[email protected]> | 2022-04-05 15:13:04 +0800 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2022-04-26 13:36:18 -0700 |
commit | 01abdfeac81b5f56062d0a78f2cdc805db937a75 (patch) | |
tree | 1ee65759a7a41655c34ffe005bc3c256e33532b2 /net/lapb/lapb_subr.c | |
parent | 06d0e3723647610936660c3c2a144c6243367c3c (diff) |
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 <[email protected]>
Signed-off-by: Guo Ren <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Tested-by: Heiko Stuebner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions