Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/amd64 Get the pcb_flags test right for the 64...



details:   https://anonhg.NetBSD.org/src/rev/2330143e172d
branches:  trunk
changeset: 580965:2330143e172d
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue May 17 15:14:47 2005 +0000

description:
Get the pcb_flags test right for the 64bit FS base case.

diffstat:

 sys/arch/amd64/amd64/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5a79cbbed538 -r 2330143e172d sys/arch/amd64/amd64/pmap.c
--- a/sys/arch/amd64/amd64/pmap.c       Tue May 17 14:53:06 2005 +0000
+++ b/sys/arch/amd64/amd64/pmap.c       Tue May 17 15:14:47 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.17 2005/05/15 21:37:46 fvdl Exp $   */
+/*     $NetBSD: pmap.c,v 1.18 2005/05/17 15:14:47 fvdl Exp $   */
 
 /*
  *
@@ -108,7 +108,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.17 2005/05/15 21:37:46 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.18 2005/05/17 15:14:47 fvdl Exp $");
 
 #ifndef __x86_64__
 #include "opt_cputype.h"
@@ -2131,7 +2131,7 @@
        }
        if (pcb->pcb_flags & PCB_GS64)
                wrmsr(MSR_KERNELGSBASE, pcb->pcb_gs);
-       if (pcb->pcb_flags & PCB_GS64)
+       if (pcb->pcb_flags & PCB_FS64)
                wrmsr(MSR_FSBASE, pcb->pcb_fs);
 }
 



Home | Main Index | Thread Index | Old Index