summaryrefslogtreecommitdiff
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-05 21:49:11 -0400
committerLioncash <mathew1800@gmail.com>2019-07-05 21:57:31 -0400
commit313cc36fecbcc0fd55ee9c81776071b62326b7e2 (patch)
tree10c17025be76e5413519a3f757bcee80fb41c737 /src/core/memory.h
parent772c86a260eb446b0fe4232b0a50666511bef25c (diff)
kernel/vm_manager: Handle stack/TLS IO region placement better
Handles the placement of the stack a little nicer compared to the previous code, which was off in a few ways. e.g. The stack (new map) region, shouldn't be the width of the entire address space if the size of the region calculation ends up being zero. It should be placed at the same location as the TLS IO region and also have the same size. In the event the TLS IO region contains a size of zero, we should also be doing the same thing. This fixes our memory layout a little bit and also resolves some cases where assertions can trigger due to the memory layout being incorrect.
Diffstat (limited to 'src/core/memory.h')
0 files changed, 0 insertions, 0 deletions