diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-02-25 15:54:10 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-02-25 16:42:37 -0500 |
commit | 1256276c98dbcfb009ac8e0687df9a1e291fd149 (patch) | |
tree | 44a85b0517106d94e8a82a98146e786117ca83c4 | |
parent | a2fd6419174470f5ae6383f5037d0ee21ed9833f (diff) |
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: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Link: http://lkml.kernel.org/r/1361825650-14031-4-git-send-email-konrad.wilk@oracle.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | arch/x86/kernel/head_64.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S index 980053c4b9cc..37f5304e80f5 100644 --- a/arch/x86/kernel/head_64.S +++ b/arch/x86/kernel/head_64.S | |||
@@ -49,7 +49,7 @@ L3_START_KERNEL = pud_index(__START_KERNEL_map) | |||
49 | startup_64: | 49 | startup_64: |
50 | 50 | ||
51 | /* | 51 | /* |
52 | * At this point the CPU runs in 64bit mode CS.L = 1 CS.D = 1, | 52 | * At this point the CPU runs in 64bit mode CS.L = 1 CS.D = 0, |
53 | * and someone has loaded an identity mapped page table | 53 | * and someone has loaded an identity mapped page table |
54 | * for us. These identity mapped page tables map all of the | 54 | * for us. These identity mapped page tables map all of the |
55 | * kernel pages and possibly all of memory. | 55 | * kernel pages and possibly all of memory. |
@@ -146,7 +146,7 @@ ident_complete: | |||
146 | jmp secondary_startup_64 | 146 | jmp secondary_startup_64 |
147 | ENTRY(secondary_startup_64) | 147 | ENTRY(secondary_startup_64) |
148 | /* | 148 | /* |
149 | * At this point the CPU runs in 64bit mode CS.L = 1 CS.D = 1, | 149 | * At this point the CPU runs in 64bit mode CS.L = 1 CS.D = 0, |
150 | * and someone has loaded a mapped page table. | 150 | * and someone has loaded a mapped page table. |
151 | * | 151 | * |
152 | * %esi holds a physical pointer to real_mode_data. | 152 | * %esi holds a physical pointer to real_mode_data. |