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
/
arch
/
x86
/
boot.S
diff --git
a/lunaix-os/arch/x86/boot.S
b/lunaix-os/arch/x86/boot.S
index bc1eec2758345b99b985c6a86f138480a72d9dbc..7bf30055a54e13689b11269908a9de937a62346e 100644
(file)
--- a/
lunaix-os/arch/x86/boot.S
+++ b/
lunaix-os/arch/x86/boot.S
@@
-41,6
+41,9
@@
* linker more knowledge about the label
*/
start_:
* linker more knowledge about the label
*/
start_:
+ cld
+ # 确保屏蔽所有外中断,直到我们准备好PIC为止
+ cli
movl $stack_top, %esp
subl $16, %esp
movl $stack_top, %esp
subl $16, %esp
@@
-57,9
+60,7
@@
/*
_hhk_init用来初始化我们高半核:
/*
_hhk_init用来初始化我们高半核:
- 1. 设置GDT表
- 2. 设置IDT表(暂时,以后会拿到 kernel_init 里面)
- 3. 初始化最简单的PTD与PT(重新映射我们的内核至3GiB处,以及对相应的地方进行Identity Map)
+ 1. 初始化最简单的PD与PT(重新映射我们的内核至3GiB处,以及对相应的地方进行Identity Map)
*/
movl $(KPG_SIZE), 4(%esp)
*/
movl $(KPG_SIZE), 4(%esp)