Skip to content

Commit b50830e

Browse files
adjust signal trampoline address
1 parent 56d2023 commit b50830e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

core/src/config/aarch64.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ pub const USER_HEAP_SIZE_MAX: usize = 0x2000_0000;
2121
/// The base address for user interpreter.
2222
pub const USER_INTERP_BASE: usize = 0x400_0000;
2323

24-
/// The address of signal trampoline (placed at top of user space).
25-
pub const SIGNAL_TRAMPOLINE: usize = USER_SPACE_BASE + USER_SPACE_SIZE - 0x1000;
24+
/// The address of signal trampoline (placed at top of user heap).
25+
pub const SIGNAL_TRAMPOLINE: usize = 0x6000_1000;

core/src/config/loongarch64.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ pub const USER_HEAP_SIZE_MAX: usize = 0x2000_0000; // 512MB
2121
/// The base address for user interpreter.
2222
pub const USER_INTERP_BASE: usize = 0x400_0000;
2323

24-
/// The address of signal trampoline (placed at top of user space).
25-
pub const SIGNAL_TRAMPOLINE: usize = USER_SPACE_BASE + USER_SPACE_SIZE - 0x1000;
24+
/// The address of signal trampoline (placed at top of user heap).
25+
pub const SIGNAL_TRAMPOLINE: usize = 0x6000_1000;

core/src/config/riscv64.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ pub const USER_HEAP_SIZE_MAX: usize = 0x2000_0000;
2121
/// The base address for user interpreter.
2222
pub const USER_INTERP_BASE: usize = 0x400_0000;
2323

24-
/// The address of signal trampoline (placed at top of user space).
25-
pub const SIGNAL_TRAMPOLINE: usize = USER_SPACE_BASE + USER_SPACE_SIZE - 0x1000;
24+
/// The address of signal trampoline (placed at top of user heap).
25+
pub const SIGNAL_TRAMPOLINE: usize = 0x6000_1000;

core/src/config/x86_64.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ pub const USER_HEAP_SIZE_MAX: usize = 0x2000_0000;
2121
/// The base address for user interpreter.
2222
pub const USER_INTERP_BASE: usize = 0x400_0000;
2323

24-
/// The address of signal trampoline (placed at top of user space).
25-
pub const SIGNAL_TRAMPOLINE: usize = USER_SPACE_BASE + USER_SPACE_SIZE - 0x1000;
24+
/// The address of signal trampoline (placed at top of user heap).
25+
pub const SIGNAL_TRAMPOLINE: usize = 0x6000_1000;

0 commit comments

Comments
 (0)