diff options
author | kib <kib@FreeBSD.org> | 2008-09-08 08:58:29 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-09-08 08:58:29 +0000 |
commit | c593a271c456fa0122e3c998de8d4c7db150c02f (patch) | |
tree | a98729ed033f63a6c991b179c20a76efca4dc2ab /sys/amd64 | |
parent | 68d1af65a895fd51f731e1a89dc4f9329224810f (diff) | |
download | FreeBSD-src-c593a271c456fa0122e3c998de8d4c7db150c02f.zip FreeBSD-src-c593a271c456fa0122e3c998de8d4c7db150c02f.tar.gz |
Fix inconsistencies in the comments.
MFC after: 1 week
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 4 | ||||
-rw-r--r-- | sys/amd64/include/segments.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index f3c41f7..2280ee9 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -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 */ diff --git a/sys/amd64/include/segments.h b/sys/amd64/include/segments.h index 891404c..1c83d1c 100644 --- a/sys/amd64/include/segments.h +++ b/sys/amd64/include/segments.h @@ -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 |