mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Fix stack size in posts (it was increased to 16kB)
This commit is contained in:
@@ -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:
|
||||
```
|
||||
|
||||
|
||||
@@ -1022,7 +1022,7 @@ p3_table:
|
||||
p2_table:
|
||||
resb 4096
|
||||
stack_bottom:
|
||||
resb 4096 * 2
|
||||
resb 4096 * 4
|
||||
stack_top:
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user