From 20d73500124972fe9cc896f790413bed7538f369 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 22 Nov 2009 20:34:28 +0100 Subject: Avoid confusion between global and local ldt vars * i386/i386/pcb.c (switch_ktss): Rename ldt variable into tldt. --- i386/i386/pcb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'i386') 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); } } -- cgit v1.2.3