diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-11-22 20:34:28 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-11-22 20:34:28 +0100 |
commit | 20d73500124972fe9cc896f790413bed7538f369 (patch) | |
tree | 880865806623b7700db62884be2093651b18791a /i386 | |
parent | 493ea92815e8180fcf396ee95a0552112e8b0472 (diff) |
Avoid confusion between global and local ldt vars
* i386/i386/pcb.c (switch_ktss): Rename ldt variable into tldt.
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386/pcb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i386/i386/pcb.c b/i386/i386/pcb.c index d896c79..3226195 100644 --- a/i386/i386/pcb.c +++ b/i386/i386/pcb.c @@ -156,11 +156,11 @@ void switch_ktss(pcb) } { - register user_ldt_t ldt = pcb->ims.ldt; + register user_ldt_t tldt = pcb->ims.ldt; /* * Set the thread`s LDT. */ - if (ldt == 0) { + if (tldt == 0) { /* * Use system LDT. */ @@ -170,7 +170,7 @@ void switch_ktss(pcb) /* * Thread has its own LDT. */ - *gdt_desc_p(mycpu,USER_LDT) = ldt->desc; + *gdt_desc_p(mycpu,USER_LDT) = tldt->desc; set_ldt(USER_LDT); } } |