git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix bugs found in brk & add simple security checks on lx_free
[lunaix-os.git]
/
lunaix-os
/
kernel
/
k_init.c
diff --git
a/lunaix-os/kernel/k_init.c
b/lunaix-os/kernel/k_init.c
index 5896ee492633f570ff87d800313f0642dd14c2a1..444aab0e818c1433f78ea03d4973948e54a3ece6 100644
(file)
--- a/
lunaix-os/kernel/k_init.c
+++ b/
lunaix-os/kernel/k_init.c
@@
-61,7
+61,7
@@
_kernel_post_init() {
vmm_unmap_page((void*)(i << PG_SIZE_BITS));
}
vmm_unmap_page((void*)(i << PG_SIZE_BITS));
}
- assert
(kalloc_init()
);
+ assert
_msg(kalloc_init(), "Fail to initialize heap"
);
}
// 按照 Memory map 标识可用的物理页
}
// 按照 Memory map 标识可用的物理页