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 Missed commit from the linux compat cha...



details:   https://anonhg.NetBSD.org/src/rev/5f8cc1010ce4
branches:  trunk
changeset: 583396:5f8cc1010ce4
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Thu Aug 04 19:31:53 2005 +0000

description:
Missed commit from the linux compat changes dealing with setting fs and gs:
copy the PCB fs and gs on fork.

diffstat:

 sys/arch/amd64/amd64/vm_machdep.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 195354383f2f -r 5f8cc1010ce4 sys/arch/amd64/amd64/vm_machdep.c
--- a/sys/arch/amd64/amd64/vm_machdep.c Thu Aug 04 19:30:47 2005 +0000
+++ b/sys/arch/amd64/amd64/vm_machdep.c Thu Aug 04 19:31:53 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.11 2005/06/10 05:10:12 matt Exp $     */
+/*     $NetBSD: vm_machdep.c,v 1.12 2005/08/04 19:31:53 fvdl Exp $     */
 
 /*-
  * Copyright (c) 1982, 1986 The Regents of the University of California.
@@ -80,7 +80,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.11 2005/06/10 05:10:12 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.12 2005/08/04 19:31:53 fvdl Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_largepages.h"
@@ -211,6 +211,9 @@
                sf->sf_rip = (u_int64_t)proc_trampoline;
        pcb->pcb_rsp = (u_int64_t)sf;
        pcb->pcb_rbp = 0;
+
+       pcb->pcb_fs = l1->l_addr->u_pcb.pcb_fs;
+       pcb->pcb_gs = l1->l_addr->u_pcb.pcb_fs;
 }
 
 void



Home | Main Index | Thread Index | Old Index