From ce7c561eb03475271aa5ab27bd28517c9a4e71a0 Mon Sep 17 00:00:00 2001 From: ilobilo <68286835+ilobilo@users.noreply.github.com> Date: Thu, 5 May 2022 15:51:31 +0400 Subject: [PATCH] Stack size If stack size == 0 use default size --- common/protos/limine.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/protos/limine.c b/common/protos/limine.c index 12ae1121..8056f907 100644 --- a/common/protos/limine.c +++ b/common/protos/limine.c @@ -383,7 +383,9 @@ FEAT_START struct limine_stack_size_response *stack_size_response = ext_mem_alloc(sizeof(struct limine_stack_size_response)); - stack_size = stack_size_request->stack_size; + if (stack_size_request->stack_size != 0) { + stack_size = stack_size_request->stack_size; + } stack_size_request->response = reported_addr(stack_size_response); FEAT_END