diff options
-rw-r--r-- | arch/x86_64/kernel/head.S | 12 | ||||
-rw-r--r-- | include/asm-x86_64/segment.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/arch/x86_64/kernel/head.S b/arch/x86_64/kernel/head.S index 23b45e79a27c..2b2e2c51e532 100644 --- a/arch/x86_64/kernel/head.S +++ b/arch/x86_64/kernel/head.S | |||
@@ -362,13 +362,13 @@ gdt: | |||
362 | 362 | ||
363 | ENTRY(cpu_gdt_table) | 363 | ENTRY(cpu_gdt_table) |
364 | .quad 0x0000000000000000 /* NULL descriptor */ | 364 | .quad 0x0000000000000000 /* NULL descriptor */ |
365 | .quad 0x00cf9b000000ffff /* __KERNEL32_CS */ | ||
366 | .quad 0x00af9b000000ffff /* __KERNEL_CS */ | ||
367 | .quad 0x00cf93000000ffff /* __KERNEL_DS */ | ||
368 | .quad 0x00cffb000000ffff /* __USER32_CS */ | ||
369 | .quad 0x00cff3000000ffff /* __USER_DS, __USER32_DS */ | ||
370 | .quad 0x00affb000000ffff /* __USER_CS */ | ||
365 | .quad 0x0 /* unused */ | 371 | .quad 0x0 /* unused */ |
366 | .quad 0x00af9a000000ffff /* __KERNEL_CS */ | ||
367 | .quad 0x00cf92000000ffff /* __KERNEL_DS */ | ||
368 | .quad 0x00cffa000000ffff /* __USER32_CS */ | ||
369 | .quad 0x00cff2000000ffff /* __USER_DS, __USER32_DS */ | ||
370 | .quad 0x00affa000000ffff /* __USER_CS */ | ||
371 | .quad 0x00cf9a000000ffff /* __KERNEL32_CS */ | ||
372 | .quad 0,0 /* TSS */ | 372 | .quad 0,0 /* TSS */ |
373 | .quad 0,0 /* LDT */ | 373 | .quad 0,0 /* LDT */ |
374 | .quad 0,0,0 /* three TLS descriptors */ | 374 | .quad 0,0,0 /* three TLS descriptors */ |
diff --git a/include/asm-x86_64/segment.h b/include/asm-x86_64/segment.h index 334ddcdd8f92..adf2bf1e187c 100644 --- a/include/asm-x86_64/segment.h +++ b/include/asm-x86_64/segment.h | |||
@@ -6,7 +6,7 @@ | |||
6 | #define __KERNEL_CS 0x10 | 6 | #define __KERNEL_CS 0x10 |
7 | #define __KERNEL_DS 0x18 | 7 | #define __KERNEL_DS 0x18 |
8 | 8 | ||
9 | #define __KERNEL32_CS 0x38 | 9 | #define __KERNEL32_CS 0x08 |
10 | 10 | ||
11 | /* | 11 | /* |
12 | * we cannot use the same code segment descriptor for user and kernel | 12 | * we cannot use the same code segment descriptor for user and kernel |