From owner-freebsd-mips@FreeBSD.ORG Thu Sep 29 07:21:44 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 399FA106564A; Thu, 29 Sep 2011 07:21:44 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id A64A78FC13; Thu, 29 Sep 2011 07:21:43 +0000 (UTC) Received: by gyf2 with SMTP id 2so340637gyf.13 for ; Thu, 29 Sep 2011 00:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=BGS3FddUWM0q6zRJzlQGumQuFipwFRQqzwyrjJ6PROQ=; b=cs0pbkbCxW1z06eXKfctuYE0JbzfbYlYFutPIDPeYTVwFTnQiAbEh41xMb/eeh9K/X 1Qhn2Vi3z9CuvEtdcEAamH7mYiXhkrN9yo7ymoVX2xLACh1D97DRaul9pYK1Sh9BjbN3 WnKVfCnSJVw+7CGTGrismRqIkLPUHLEExNXhk= MIME-Version: 1.0 Received: by 10.236.129.165 with SMTP id h25mr4755366yhi.38.1317280903092; Thu, 29 Sep 2011 00:21:43 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.111.42 with HTTP; Thu, 29 Sep 2011 00:21:43 -0700 (PDT) In-Reply-To: References: Date: Thu, 29 Sep 2011 15:21:43 +0800 X-Google-Sender-Auth: ZlN3R6mAujq2dyL_vmRdZ5fp1lw Message-ID: From: Adrian Chadd To: Juli Mallett Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: eventtimer issue on mips: temporary workaround X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 07:21:44 -0000 On 29 September 2011 14:49, Juli Mallett wrote: > If I'm understanding right, that's much of the thrust of the problem. > I mean, we can check whether a non-masked interrupt was asserted > before doing the wait, but there's still a window between that and the > wait. =A0It sounds like we need a conditional wait instruction, which is Yes. That's absolutely right. > to say it sounds like the code does need a rethink for MIPS (although > why "wait" wouldn't return immediately if there's a non-masked > interrupt asserted is beyond me.) =A0But I'm still somewhat confused by > the original post, so may be missing the mark on that. No, I think you have it. Adrian