diff options
author | julian <julian@FreeBSD.org> | 1998-12-19 02:55:34 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1998-12-19 02:55:34 +0000 |
commit | 61490236bcee0615867517e76eb92c1b20075f82 (patch) | |
tree | 9a109f9996daee77886aee1062aa97f90896dd47 /sys/vm/vm_glue.c | |
parent | da7c7a2e129d402169d2fbc6d83f596d7d16d83a (diff) | |
download | FreeBSD-src-61490236bcee0615867517e76eb92c1b20075f82.zip FreeBSD-src-61490236bcee0615867517e76eb92c1b20075f82.tar.gz |
Reviewed by: Luoqi Chen, Jordan Hubbard
Submitted by: "Richard Seaman, Jr." <lists@tar.com>
Obtained from: linux :-)
Code to allow Linux Threads to run under FreeBSD.
By default not enabled
This code is dependent on the conditional
COMPAT_LINUX_THREADS (suggested by Garret)
This is not yet a 'real' option but will be within some number of hours.
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r-- | sys/vm/vm_glue.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index e73862d..3313149 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -59,7 +59,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_glue.c,v 1.76 1998/09/29 17:33:59 abial Exp $ + * $Id: vm_glue.c,v 1.77 1998/10/13 08:24:43 dg Exp $ */ #include "opt_rlimit.h" @@ -230,13 +230,20 @@ vm_fork(p1, p2, flags) up = p2->p_addr; /* +#ifndef COMPAT_LINUX_THREADS * p_stats and p_sigacts currently point at fields in the user struct * but not at &u, instead at p_addr. Copy p_sigacts and parts of +#else + * p_stats currently points at fields in the user struct + * but not at &u, instead at p_addr. Copy parts of +#endif /* COMPAT_LINUX_THREADS */ * p_stats; zero the rest of p_stats (statistics). */ p2->p_stats = &up->u_stats; +#ifndef COMPAT_LINUX_THREADS p2->p_sigacts = &up->u_sigacts; up->u_sigacts = *p1->p_sigacts; +#endif /* COMPAT_LINUX_THREADS */ bzero(&up->u_stats.pstat_startzero, (unsigned) ((caddr_t) &up->u_stats.pstat_endzero - (caddr_t) &up->u_stats.pstat_startzero)); |