From 09b5e7b136a8ecef6b245500df830c3fc8c7f2fd Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sat, 25 Mar 2017 16:23:37 +0100 Subject: [PATCH] Fix stack size in posts (it was increased to 16kB) --- blog/content/post/05-allocating-frames.md | 4 ++-- blog/content/post/07-remap-the-kernel.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blog/content/post/05-allocating-frames.md b/blog/content/post/05-allocating-frames.md index ed2958d3..67e2a6ce 100644 --- a/blog/content/post/05-allocating-frames.md +++ b/blog/content/post/05-allocating-frames.md @@ -12,13 +12,13 @@ The full source code is available on [Github][source repo]. Feel free to open is [source repo]: https://github.com/phil-opp/blog_os/tree/allocating_frames ## Preparation -We still have a really tiny stack of 64 bytes, which won't suffice for this post. So we increase it to 4096 bytes (one page) in `boot.asm`: +We still have a really tiny stack of 64 bytes, which won't suffice for this post. So we increase it to 16kB (four pages) in `boot.asm`: ```asm section .bss ... stack_bottom: - resb 4096 + resb 4096 * 4 stack_top: ``` diff --git a/blog/content/post/07-remap-the-kernel.md b/blog/content/post/07-remap-the-kernel.md index 34dfdff3..220c9915 100644 --- a/blog/content/post/07-remap-the-kernel.md +++ b/blog/content/post/07-remap-the-kernel.md @@ -1022,7 +1022,7 @@ p3_table: p2_table: resb 4096 stack_bottom: - resb 4096 * 2 + resb 4096 * 4 stack_top: ```