Date: Tue, 1 Oct 2002 12:58:00 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 18487 for review Message-ID: <200210011958.g91Jw09w069874@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18487 Change 18487 by jhb@jhb_laptop on 2002/10/01 12:57:14 td_md should not be copied by MI code. This is already safe on i386. I just need to check and test other archs. Affected files ... .. //depot/projects/smpng/sys/sys/proc.h#58 edit Differences ... ==== //depot/projects/smpng/sys/sys/proc.h#58 (text+ko) ==== @@ -286,12 +286,10 @@ struct ucred *td_ucred; /* (k) Reference to credentials. */ void (*td_switchin)(void); /* (k) Switchin special func. */ u_int td_critnest; /* (k) Critical section nest level. */ -#define td_endzero td_md +#define td_endzero td_td_base_pri /* Copied during fork1() or thread_sched_upcall() */ #define td_startcopy td_endzero - /* XXXKSE just copying td_md needs checking! */ - struct mdthread td_md; /* (k) Any machine-dependent fields. */ u_char td_base_pri; /* (j) Thread base kernel priority. */ u_char td_priority; /* (j) Thread active priority. */ #define td_endcopy td_pcb @@ -313,6 +311,7 @@ struct trapframe *td_frame; /* (k) */ struct vm_object *td_kstack_obj;/* (a) Kstack object. */ vm_offset_t td_kstack; /* Kernel VA of kstack. */ + struct mdthread td_md; /* (k) Any machine-dependent fields. */ }; /* flags kept in td_flags */ #define TDF_UNBOUND 0x000001 /* May give away the kse, uses the kg runq. */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210011958.g91Jw09w069874>