From 4df08a04e1e97c9c6870fef5101419e316e91717 Mon Sep 17 00:00:00 2001 From: Alexander Kuleshov Date: Sat, 5 May 2018 23:50:31 +0600 Subject: [PATCH] boot-4: s/command/instruction Signed-off-by: Alexander Kuleshov --- Booting/linux-bootstrap-4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Booting/linux-bootstrap-4.md b/Booting/linux-bootstrap-4.md index 1a4482e..66af1af 100644 --- a/Booting/linux-bootstrap-4.md +++ b/Booting/linux-bootstrap-4.md @@ -323,7 +323,7 @@ In simple terms, this means that the Linux kernel with the same configuration ca KBUILD_CFLAGS += -fno-strict-aliasing -fPIC ``` -When we are using position-independent code an address is obtained by adding the address field of the command and the value of the program counter. We can load code which uses such addressing from any address. That's why we had to get the real physical address of `startup_32`. Now let's get back to the Linux kernel code. Our current goal is to calculate an address where we can relocate the kernel for decompression. Calculation of this address depends on `CONFIG_RELOCATABLE` kernel configuration option. Let's look at the code: +When we are using position-independent code an address is obtained by adding the address field of the instruction and the value of the program counter. We can load code which uses such addressing from any address. That's why we had to get the real physical address of `startup_32`. Now let's get back to the Linux kernel code. Our current goal is to calculate an address where we can relocate the kernel for decompression. Calculation of this address depends on `CONFIG_RELOCATABLE` kernel configuration option. Let's look at the code: ```assembly #ifdef CONFIG_RELOCATABLE