diff options
author | julian <julian@FreeBSD.org> | 1999-01-26 02:38:12 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1999-01-26 02:38:12 +0000 |
commit | 05a22328877b551a6299973368b01a69c27c5567 (patch) | |
tree | 2d0955594e5dedfc3a72b9f38810bbe3daa8e68c /sys/vm/vm_glue.c | |
parent | 7332041031f8b27a81d26881a3601d76ede641f0 (diff) | |
download | FreeBSD-src-05a22328877b551a6299973368b01a69c27c5567.zip FreeBSD-src-05a22328877b551a6299973368b01a69c27c5567.tar.gz |
Enable Linux threads support by default.
This takes the conditionals out of the code that has been tested by
various people for a while.
ps and friends (libkvm) will need a recompile as some proc structure
changes are made.
Submitted by: "Richard Seaman, Jr." <dick@tar.com>
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r-- | sys/vm/vm_glue.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index 19b46d8..bd592be 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.81 1999/01/21 08:29:10 dillon Exp $ + * $Id: vm_glue.c,v 1.82 1999/01/21 09:36:23 dillon Exp $ */ #include "opt_rlimit.h" @@ -238,16 +238,6 @@ 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 - * p_stats; zero the rest of p_stats (statistics). - */ - p2->p_stats = &up->u_stats; - p2->p_sigacts = &up->u_sigacts; - up->u_sigacts = *p1->p_sigacts; -#else /* * p_stats currently points at fields in the user struct * but not at &u, instead at p_addr. Copy parts of @@ -263,7 +253,7 @@ vm_fork(p1, p2, flags) 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)); |