2 #include <sys/boot/multiboot.h>
4 #define MB_FLAGS (MULTIBOOT_MEMORY_INFO | MULTIBOOT_PAGE_ALIGN)
5 #define KPG_SIZE 10*4096
10 .long CHECKSUM(MB_FLAGS)
13 /* 根据System V ABI,栈地址必须16字节对齐 */
14 /* 这里只是一个临时栈,在_hhk_init里面我们会初始化内核专用栈 */
21 .type start_, @function /* Optional, this just give the
22 * linker more knowledge about the label
26 # 确保屏蔽所有外中断,直到我们准备好PIC为止
28 movl $__boot_stack_top, %esp