本文主要是介绍I386中bootloader与kernel之间的信息交换,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
有些信息需要从bootloader传递到内核中,empty_zero_page是i386交换信息的场所。
下面这段话来自于Documentation/i386/zero-page.txt
Summary of empty_zero_page layout (kernel point of view)
( collected by Hans Lermen and Martin Mares )
The contents of empty_zero_page are used to pass parameters from the
16-bit realmode code of the kernel to the 32-bit part. References/settings
to it mainly are in:
arch/i386/boot/setup.S
arch/i386/boot/video.S
arch/i386/kernel/head.S
arch/i386/kernel/setup.c
Offset Type Description
------ ---- -----------
0 32 bytes struct screen_info, SCREEN_INFO
ATTENTION, overlaps the following !!!
2 unsigned short EXT_MEM_K, extended memory size in Kb (from int 0x15)
0x20 unsigned short CL_MAGIC, commandline magic number (=0xA33F)
0x22 unsigned short CL_OFFSET, commandline offset
这篇关于I386中bootloader与kernel之间的信息交换的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!