Date: Mon, 1 Dec 2003 12:45:45 -0800 (PST) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 43245 for review Message-ID: <200312012045.hB1Kjjh3060459@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=43245 Change 43245 by peter@peter_daintree on 2003/12/01 12:45:32 i386 sync. now that curthread isn't so damn toxic.... Affected files ... .. //depot/projects/hammer/sys/amd64/amd64/critical.c#11 edit Differences ... ==== //depot/projects/hammer/sys/amd64/amd64/critical.c#11 (text+ko) ==== @@ -30,15 +30,7 @@ #include <sys/param.h> #include <sys/systm.h> -#include <sys/signalvar.h> -#include <sys/kernel.h> -#include <sys/lock.h> -#include <sys/mutex.h> -#include <sys/pcpu.h> #include <sys/proc.h> -#include <sys/sysctl.h> -#include <sys/ucontext.h> -#include <machine/clock.h> #include <machine/critical.h> /* @@ -47,8 +39,6 @@ void cpu_critical_fork_exit(void) { - struct thread *td; - td = curthread; - td->td_md.md_savecrit = read_rflags() | PSL_I; + curthread->td_md.md_savecrit = read_rflags() | PSL_I; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312012045.hB1Kjjh3060459>