From 41bc27ff71526a138de4495e134dc07ea8774c06 Mon Sep 17 00:00:00 2001 From: Z Date: Wed, 18 Nov 2020 16:23:34 +0800 Subject: [PATCH] Update linux-initialization-2.md --- Initialization/linux-initialization-2.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Initialization/linux-initialization-2.md b/Initialization/linux-initialization-2.md index e625952..34fd00b 100644 --- a/Initialization/linux-initialization-2.md +++ b/Initialization/linux-initialization-2.md @@ -314,7 +314,7 @@ Now let's look on the `early_idt_handler_common` implementation. It locates in t incl early_recursion_flag(%rip) ``` -The `early_recursion_flag` locates in the same assembly file as the `early_idt_handler_common` symbol like the following: +The `early_recursion_flag` is defined in the same assembly file as the `early_idt_handler_common` symbol as follows: ```assembly early_recursion_flag: @@ -417,7 +417,7 @@ int __init early_make_pgtable(unsigned long address) } ``` -`__PAGE_OFFSET` is defined in the [arch/x86/include/asm/page_64_types.h](https://elixir.bootlin.com/linux/v3.10-rc1/source/arch/x86/include/asm/page_64_types.h#L33) header file, and you can note that the `UL` tells the compiler that they are not of type int, but unsigned long. +`__PAGE_OFFSET` is defined in the [arch/x86/include/asm/page_64_types.h](https://elixir.bootlin.com/linux/v3.10-rc1/source/arch/x86/include/asm/page_64_types.h#L33) header file, and the suffix `UL` forces the page offset to be a unsigned long data type. ```C #define __PAGE_OFFSET _AC(0xffff880000000000, UL)