blob: 76d192ac98aca62d46443ca06096babb4351521b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tobias Christiansen <tobyase@serenityos.org>
Date: Fri, 11 Mar 2022 19:01:35 +0100
Subject: [PATCH] Remove use of sbrk()
Again, for performance reporting the function `sbrk` is needed which we don't have. We just stub it out.
---
src/sbrk.cc | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/sbrk.cc b/src/sbrk.cc
index 6e5292f..704d75c 100644
--- a/src/sbrk.cc
+++ b/src/sbrk.cc
@@ -34,9 +34,6 @@ extern uint64_t top_of_memory();
uint64_t
top_of_memory()
{
- if (sizeof(const void *) == 4)
- return 0xFFFFFFFFULL & uint64_t(sbrk(0));
- else
- return uint64_t(sbrk(0));
+ return 0xFFFFFFFFULL;
}
|