summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2024-03-23 14:53:17 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-03-23 13:03:53 +0100
commita32f12f23025622b60cc33559950bc7913f59311 (patch)
treec76f5edaca512c52cb7bb14f35101f5b74a2f897
parentddc4f0144a709cebc4dae321b810e85547856b09 (diff)
libshouldbeinlibc: Stop relying on address space size
While GNU Mach on AArch64 still exports VM_MIN_ADDRESS / VM_MAX_ADDRESS for compatibility, we should try to rely on it less when possible; in the future we might be able to stop exporting them from Mach. The code here really just wants to wire everything in its address space, and the wire_segment_internal () routine already queries for actually present memory regions dynamically. Message-ID: <20240323115322.69075-5-bugaevc@gmail.com>
-rw-r--r--libshouldbeinlibc/wire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libshouldbeinlibc/wire.c b/libshouldbeinlibc/wire.c
index ea6c5526..d1c745a8 100644
--- a/libshouldbeinlibc/wire.c
+++ b/libshouldbeinlibc/wire.c
@@ -136,7 +136,7 @@ wire_task_self (void)
if (err)
return err;
- err = wire_segment_internal (VM_MIN_ADDRESS, VM_MAX_ADDRESS, host);
+ err = wire_segment_internal (0, (vm_size_t) -1, host);
if (err)
goto out;