Documentation/x86/boot.rst: minor improvement
PATCH 1/1 Documentation/x86/boot.rst: minor improvement
Typo fix & file name update
--- Documentation/x86/boot.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/x86/boot.rst +2 -2
@@ -1379,7 +1379,7 @@ can be calculated as follows:: In addition to read/modify/write the setup header of the struct boot_params as that of 16-bit boot protocol, the boot loader should also fill the additional fields of the struct boot_params as described -in zero-page.txt. +in zero-page.rst. After setting up the struct boot_params, the boot loader can load 64-bit kernel in the same way as that of 16-bit boot protocol, but
@@ -1391,7 +1391,7 @@ In 64-bit boot protocol, the kernel is started by jumping to the At entry, the CPU must be in 64-bit mode with paging enabled. The range with setup_header.init_size from start address of loaded -kernel and zero page and command line buffer get ident mapping; +kernel and zero page and command line buffer get identity mapping; a GDT must be loaded with the descriptors for selectors __BOOT_CS(0x10) and __BOOT_DS(0x18); both descriptors must be 4G flat segment; __BOOT_CS must have execute/read permission, and __BOOT_DS
Signature · 1 line
2.21.0
Sorry, I mis-copied 2 addresses. make sure they are CCed.
Quoted 30 lines · Cao jin
Typo fix & file name update
Signed-off-by Cao jin <[email protected]>--- Documentation/x86/boot.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Documentation/x86/boot.rst +2
-2@@ -1379,7 +1379,7 @@ can be calculated as follows:: In addition to read/modify/write the setup header of the struct boot_params as that of 16-bit boot protocol, the boot loader should also fill the additional fields of the struct boot_params as described -in zero-page.txt. +in zero-page.rst. After setting up the struct boot_params, the boot loader can load 64-bit kernel in the same way as that of 16-bit boot protocol, but@@ -1391,7 +1391,7 @@ In 64-bit boot protocol, the kernel is started by jumping to the At entry, the CPU must be in 64-bit mode with paging enabled. The range with setup_header.init_size from start address of loaded -kernel and zero page and command line buffer get ident mapping; +kernel and zero page and command line buffer get identity mapping; a GDT must be loaded with the descriptors for selectors __BOOT_CS(0x10) and __BOOT_DS(0x18); both descriptors must be 4G flat segment; __BOOT_CS must have execute/read permission, and __BOOT_DS
Signature · 2 lines
Sincerely, Cao jin
If you are going to fix the language...
Quoted 21 lines · Cao jin
Sorry, I mis-copied 2 addresses. make sure they are CCed.
Quoted 18 lines · Cao jin
Typo fix & file name update
Signed-off-by Cao jin <[email protected]>--- Documentation/x86/boot.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Documentation/x86/boot.rst +1
-1@@ -1379,7 +1379,7 @@ can be calculated as follows:: In addition to read/modify/write the setup header of the struct boot_params as that of 16-bit boot protocol, the boot loader should also fill the additional fields of the struct boot_params as described -in zero-page.txt. +in zero-page.rst.
Quoted 5 lines
Documentation/x86/boot.rst In 64-bit boot protocol, the kernel is started by jumping to the · line 1392
Quoted 5 lines
Documentation/x86/boot.rst +0
-0After setting up the struct boot_params, the boot loader can load 64-bit kernel in the same way as that of 16-bit boot protocol, but@@ -1391,7 +1391,7 @@ In 64-bit boot protocol, the kernel is started by jumping to the At entry, the CPU must be in 64-bit mode with paging enabled.
(Paging enabled is redundant here.)
Quoted 3 lines
Documentation/x86/boot.rst In 64-bit boot protocol, the kernel is started by jumping to the · line 1394
Quoted 3 lines
Documentation/x86/boot.rst +1
-1The range with setup_header.init_size from start address of loaded -kernel and zero page and command line buffer get ident mapping; +kernel and zero page and command line buffer get identity mapping;
The range with setup_header.init_size from start address of the loaded kernel, the zero page, and the command line buffer get identity-mapped, anda GDT must be loaded with the descriptors for selectors __BOOT_CS(0x10) and __BOOT_DS(0x18): both descriptors must be 4G flat segment with __BOOT_CS having execute/read
permission and __BOOT_DS...
Also, it might be useful to take a look to see if other data structures, like setup_data and the initrd also need to be in the identity map.
-hpa
Quoted 8 lines · H. Peter Anvin
If you are going to fix the language...
Quoted 5 lines · Cao jin
Sorry, I mis-copied 2 addresses. make sure they are CCed.
Quoted 2 lines · Cao jin
Typo fix & file name update
I did quick search in dict & google, didn't see ident = identity, my omission.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Signed-off-by Cao jin <[email protected]>
...
Quoted 5 lines
Quoted 3 lines
Documentation/x86/boot.rst In 64-bit boot protocol, the kernel is started by jumping to the · line 1392
Quoted 3 lines
Documentation/x86/boot.rst +0
-0@@ -1391,7 +1391,7 @@ In 64-bit boot protocol, the kernel is started by jumping to the At entry, the CPU must be in 64-bit mode with paging enabled.(Paging enabled is redundant here.)
Yes, 64-bit defaults with paging enabled. Maybe it is a little bit helpful for newbies.
Quoted 12 lines
Quoted 4 lines
Documentation/x86/boot.rst In 64-bit boot protocol, the kernel is started by jumping to the · line 1394
Quoted 4 lines
Documentation/x86/boot.rst +1
-1The range with setup_header.init_size from start address of loaded -kernel and zero page and command line buffer get ident mapping; +kernel and zero page and command line buffer get identity mapping;The range with setup_header.init_size from start address of the loaded kernel, the zero page, and the command line buffer get identity-mapped, anda GDT must be loaded with the descriptors for selectors
__BOOT_CS(0x10)and__BOOT_DS(0x18): both descriptors must be 4G flat segment with__BOOT_CShaving execute/read
permission and__BOOT_DS...
Quoted 3 lines
Also, it might be useful to take a look to see if other data structures, like
setup_dataand the initrd also need to be in the identity map.
Thanks for your info. I have indistinct memory that KASLR need them identity mapped. I will take a look.
Signature · 2 lines
Sincerely, Cao jin