Fix inconsistencies in the comments.

MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2008-09-08 08:58:29 +00:00
parent d172be1fd0
commit 575a30d883
2 changed files with 3 additions and 3 deletions

View File

@ -803,7 +803,7 @@ cpu_setregs(void)
* Initialize segments & interrupt table
*/
struct user_segment_descriptor gdt[NGDT * MAXCPU];/* global descriptor table */
struct user_segment_descriptor gdt[NGDT * MAXCPU];/* global descriptor tables */
static struct gate_descriptor idt0[NIDT];
struct gate_descriptor *idt = &idt0[0]; /* interrupt descriptor table */
@ -870,7 +870,7 @@ struct soft_segment_descriptor gdt_segs[] = {
/* GPROC0_SEL 6 Proc 0 Tss Descriptor */
{
0x0, /* segment base address */
sizeof(struct amd64tss)-1,/* length - all address space */
sizeof(struct amd64tss)-1,/* length */
SDT_SYSTSS, /* segment type */
SEL_KPL, /* segment descriptor priority level */
1, /* segment descriptor present */

View File

@ -201,7 +201,7 @@ struct region_descriptor {
#define GUDATA_SEL 4 /* User 32/64 bit Data Descriptor */
#define GUCODE_SEL 5 /* User 64 bit Code Descriptor */
#define GPROC0_SEL 6 /* TSS for entering kernel etc */
/* slot 6 is second half of GPROC0_SEL */
/* slot 7 is second half of GPROC0_SEL */
#define GUGS32_SEL 8 /* User 32 bit GS Descriptor */
#define NGDT 9