Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Oct 2011 20:39:42 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        "Jayachandran C." <jchandra@freebsd.org>, Kostik Belousov <kostikbel@gmail.com>, Alexander Motin <mav@freebsd.org>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: svn commit: r225892 - head/sys/mips/mips
Message-ID:  <79147576-6E4F-46C9-8887-0847567A46A7@bsdimp.com>
In-Reply-To: <CAJ-Vmon7ydNeN9aubLNdpFJfMgY99FGj6JK07CuUEa8n3bHR2w@mail.gmail.com>
References:  <CA%2B7sy7BiRvTB79H9=y%2BS4jQ=%2BboW1bcDJn%2BBULMmJU9KLLVJ5A@mail.gmail.com> <CAJ-VmokAsDpjJLt%2BVJ2gDGX%2BiMAwZvL2TPaaAD_LRm-Yyquxig@mail.gmail.com> <CA%2B7sy7D6h5a08Q6yNfX6xSqwabDLzE5GLu5aV3fCMYQKn_4AoQ@mail.gmail.com> <CAJ-Vmon32cVEVvC=3WJVmDkCUdyLWyec3sqU-ifzspVSPxedfg@mail.gmail.com> <CAJ-Vmomsq5PQzbCBmWob5juB9EqdcEoYV%2B9vwYjnJQYTo_%2B4kw@mail.gmail.com> <CAJ-Vmon_a_zLZmEGqwFaYaobjYFE2i1u2Viq3QD5dw4wpNNURA@mail.gmail.com> <CA%2B7sy7DFCMxo-2bJwBJcSEJf7ewG7Y=XwdgKXkhpRyDXQpvsYA@mail.gmail.com> <CAJ-VmokPFqS2oNWZ_mFSxy=0MXfgqtOcBHSQe%2BdYXvsLHAyGjQ@mail.gmail.com> <CAJ-VmomqmKPRHBCbt46_xXD0VoU47Q-vYWbAqCFaM635ZnOHWA@mail.gmail.com> <CAJ-VmomLbueaG3bmnT0WfeKaMSyXSNo80BWXqEe39z6x%2Bx8QoA@mail.gmail.com> <20111002110331.GF1511@deviant.kiev.zoral.com.ua> <CA%2B7sy7A%2Bq_N6Hr%2B3-tD=BJxmqtDgBeWF9HJCtopLF0RUz6hVyw@mail.gmail.com> <CA%2B7sy7Ax9SXSK1CyxuBNboktJxuQTMiu3D4NFmZSoq7-ipoQgA@mail.gmail.com> <CA%2B7sy7Cin5-cHcP-8_qYGhpEnAN9gw6S5ekXYK6Q3X9FREQggA@mail.gmail.com> <AC6674AB7BC78549BB231821ABF7A! 9AEB80CB1F9B2@EMBX01-WF.jnpr.net> <CAJ-Vmon7ydNeN9aubLNdpFJfMgY99FGj6JK07CuUEa8n3bHR2w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Oct 3, 2011, at 7:38 PM, Adrian Chadd wrote:

> On 4 October 2011 07:09, Andrew Duane <aduane@juniper.net> wrote:
>> The COP0_SYNC's should be there (should there also be one after the =
MTC0 in MipsKernIntr?). The ISA says a hazard is needed, so that should =
be reflected. I assume different platforms define COP0_SYNC for =
themselves as needed?
>=20
> Is one needed after the mtc0 after StartWaitSkip?

I don't think it matters.  The COP0_SYNC is needed when you want to =
flush the instruction pipeline so that changes to COP0 don't affect them =
'randomly'.  However, in this case.  Either we're setting a bit that's =
already set, which won't change anything, or we're setting a bit that's =
clear, which will just delay the delivery of the interrupt a few cycles. =
 The race where it happens before the wait instruction is handled by the =
rest of the patch.

Warner




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?79147576-6E4F-46C9-8887-0847567A46A7>