summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-11-22 20:34:28 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-11-22 20:34:28 +0100
commit20d73500124972fe9cc896f790413bed7538f369 (patch)
tree880865806623b7700db62884be2093651b18791a /i386
parent493ea92815e8180fcf396ee95a0552112e8b0472 (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.c6
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);
}
}