Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stack: increase size of the interrupt and small syscall stack in debu…
…g mode When building OSv with newer GCC (>= 12) in debug mode, the interrupt handler running on dedicated stack needs more than 1 page otherwise it causes overflow. Similarly, the code setting up large syscall stack, running on small 2K stack runs of of space as well. To fix this, we increase the interrupt stack size to 8K and small syscall stack size to 8K when building in debug mode (#ifndef NDEBUG). Ideally, in long term we should implement some canary-based logic to detect interrupt stack overflow as the issue #1339 explains. Ref #1339 Signed-off-by: Waldemar Kozaczuk <[email protected]>
- Loading branch information