From af8d4b24f617ec03211fc9ef17e7c5f7214c6d2b Mon Sep 17 00:00:00 2001 From: hailin cai Date: Fri, 5 Feb 2016 12:32:47 -0500 Subject: [PATCH] Update Booting/linux-bootstrap-2md.md --- Booting/linux-bootstrap-2md.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Booting/linux-bootstrap-2md.md b/Booting/linux-bootstrap-2md.md index 9b76b89..8469a27 100644 --- a/Booting/linux-bootstrap-2md.md +++ b/Booting/linux-bootstrap-2md.md @@ -179,3 +179,4 @@ lgdt gdt 将启动参数拷贝到"zeropage" -------------------------------------------------------------------------------- +We will start from the `main` routine in "main.c". First function which is called in `main` is [`copy_boot_params(void)`](https://github.com/torvalds/linux/blob/master/arch/x86/boot/main.c#L30). It copies the kernel setup header into the field of the `boot_params` structure which is defined in the [arch/x86/include/uapi/asm/bootparam.h](https://github.com/torvalds/linux/blob/master/arch/x86/include/uapi/asm/bootparam.h#L113).