From owner-freebsd-arm@FreeBSD.ORG Sat Apr 20 21:50:57 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 37FAE15C for ; Sat, 20 Apr 2013 21:50:57 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) by mx1.freebsd.org (Postfix) with ESMTP id C73D2FF8 for ; Sat, 20 Apr 2013 21:50:56 +0000 (UTC) Received: by mail-wi0-f178.google.com with SMTP id hq17so2495023wib.11 for ; Sat, 20 Apr 2013 14:50:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; bh=Wr2SCEbkLJFSTEX6g2FyAD/l0RLVzdB9PNuIKiDae8s=; b=LoqUsP9F7H3GJiSkrJSJ5SHYfh8udHuYAv4TIdfXSN/ChAXuE6KVKVS6Ripl1PgRmD PaDVwg3t1IqYusX63bspjVdGO8fN9ksDsU6CLR0I0LEK8aGfP8QrTH/DeByEfl1uDgf4 HOR6huvPOZspwuhMCgTgrEDUiUxiMfBtdUsoSxjNrg1n3cE+aNGxjXwYFjv17aJrpaEk eKTsf5fzbv046/GJI/G8UCKLV0UnaoWoa4JoR3Zt+1CBDHgI8eQNdobnwBm6TmZkZFp/ OzSxG9x2FVRFF3OXNQN3oU7gMZdl9BLy/AsqhH+XV0oQAR9dgMXf/DfA+cOce7p2DvqC LTdQ== X-Received: by 10.194.90.108 with SMTP id bv12mr19933535wjb.4.1366494655917; Sat, 20 Apr 2013 14:50:55 -0700 (PDT) Received: from [10.61.162.4] (64-103-25-233.cisco.com. [64.103.25.233]) by mx.google.com with ESMTPS id a41sm31431775eei.4.2013.04.20.14.50.54 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 20 Apr 2013 14:50:55 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: gic.c and interrupt priority mask register (GICC_PMR) From: Damjan Marion In-Reply-To: <5171C5C6.7080907@sbcglobal.net> Date: Sat, 20 Apr 2013 23:50:53 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <17C7A0BE-43E4-422C-8E0F-11897DBB188E@gmail.com> References: <5171C5C6.7080907@sbcglobal.net> To: Thomas Skibo X-Mailer: Apple Mail (2.1503) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Apr 2013 21:50:57 -0000 On Apr 20, 2013, at 12:31 AM, Thomas Skibo = wrote: >=20 > Hello. >=20 > I mentioned this as an aside in another email but I'd like to revisit = it. >=20 > My Zynq port doesn't work unless I initialize the GIC interrupt = priority mask register (GICC_PMR) which I do in a hack in zy7_machdep.c. = The GICC_PMR register is never touched in gic.c and I wonder how other = ARM ports work without having it initialized. I figure either they use = a different interrupt controller, their GIC implementation has a = different reset value for the PMR, or a boot-loader sets up the register = before the kernel is entered. >=20 > The ARM Generic Interrupt Controller Architecture Specification = (version 2.0) states that the reset value of GICC_PMR is 0 which masks = all interrupts. So shouldn't gic.c initialize it to 0xff if the PMR = functionality isn't used? >=20 > --Thomas Hi Thomas, Makes sense. GIC is used on several platforms so i guess those = implementations have different reset value. I can commit this if nobody objects. Damjan