Commit 1256276c authored by Konrad Rzeszutek Wilk's avatar Konrad Rzeszutek Wilk Committed by H. Peter Anvin

x86, doc: Fix incorrect comment about 64-bit code segment descriptors

The AMD64 Architecture Programmer's Manual Volume 2, on page
89 mentions: "If the processor is running in 64-bit mode (L=1),
the only valid setting of the D bit is 0." This matches
with what the code does.
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Link: http://lkml.kernel.org/r/1361825650-14031-4-git-send-email-konrad.wilk@oracle.comSigned-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent a2fd6419
...@@ -49,7 +49,7 @@ L3_START_KERNEL = pud_index(__START_KERNEL_map) ...@@ -49,7 +49,7 @@ L3_START_KERNEL = pud_index(__START_KERNEL_map)
startup_64: startup_64:
/* /*
* At this point the CPU runs in 64bit mode CS.L = 1 CS.D = 1, * At this point the CPU runs in 64bit mode CS.L = 1 CS.D = 0,
* and someone has loaded an identity mapped page table * and someone has loaded an identity mapped page table
* for us. These identity mapped page tables map all of the * for us. These identity mapped page tables map all of the
* kernel pages and possibly all of memory. * kernel pages and possibly all of memory.
...@@ -146,7 +146,7 @@ ident_complete: ...@@ -146,7 +146,7 @@ ident_complete:
jmp secondary_startup_64 jmp secondary_startup_64
ENTRY(secondary_startup_64) ENTRY(secondary_startup_64)
/* /*
* At this point the CPU runs in 64bit mode CS.L = 1 CS.D = 1, * At this point the CPU runs in 64bit mode CS.L = 1 CS.D = 0,
* and someone has loaded a mapped page table. * and someone has loaded a mapped page table.
* *
* %esi holds a physical pointer to real_mode_data. * %esi holds a physical pointer to real_mode_data.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment