Subject: Re: CVS commit: src/sys/arch
To: None <juan@xtrarom.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: source-changes
Date: 03/21/2007 14:32:56
> On Wed, 21 Mar 2007 14:22:08 +0900 (JST)
> yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi) wrote:
>
> > > Module Name: src
> > > Committed By: xtraeme
> > > Date: Tue Mar 20 21:07:40 UTC 2007
> > >
> > > Modified Files:
> > > src/sys/arch/amd64/amd64: ipifuncs.c machdep.c
> > > src/sys/arch/amd64/include: cpu.h
> > > src/sys/arch/i386/i386: ipifuncs.c machdep.c
> > > src/sys/arch/i386/include: cpu.h
> > > src/sys/arch/x86/conf: files.x86
> > > src/sys/arch/x86/include: intrdefs.h
> > > src/sys/arch/x86/x86: x86_machdep.c
> > > Added Files:
> > > src/sys/arch/x86/include: cpu_msr.h
> > > src/sys/arch/x86/x86: msr_ipifuncs.c
> > >
> > > Log Message:
> > > MSR read and write IPI handlers for x86. A MSR will be read or
> > > written in all CPUs available in the system. This adds another
> > > member to struct cpu_info, ci_msr_rvalue; it will contain the value
> > > of the MSR in a previous operation.
> >
> > is ci_msr_rvalue only for DPRINTF?
>
> It's used there, but for future access the value is assigned in
> msr_read_ipi(). So that if you do a read operation in the driver,
> you can access to it.
once you release msr_mtx, the values can be overwritten by
other users of the api.
YAMAMOTO Takashi