Skip to content

Commit

Permalink
Fix GetBitsInAddressSpace (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
robalb authored Oct 16, 2024
1 parent 1fe980c commit 93cc278
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blink/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ static void *PortableMmap(void *addr, //
}

static int GetBitsInAddressSpace(void) {
#ifdef __EMSCRIPTEN__
return 32;
#else
int i;
void *ptr;
uint64_t want;
Expand All @@ -117,6 +120,7 @@ static int GetBitsInAddressSpace(void) {
}
}
Abort();
#endif
}

static u64 GetVirtualAddressSpace(int vabits, long pagesize) {
Expand Down

0 comments on commit 93cc278

Please sign in to comment.