Commit 3b93042
committed
fix(mm): use stack buffer for memory map (heap not ready yet)
- CRITICAL BUG: mm::init used alloc::vec! to get UEFI Memory Map
- But heap initialization happens AFTER memory map scanning!
- This caused a circular dependency: alloc needs heap, heap needs memory map
- Fix: Use static [u8; 8192] stack buffer instead of Vec
- This breaks the circular dependency and allows boot to proceed1 parent e7b56af commit 3b93042
1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
0 commit comments