Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Nov 2019 01:35:50 +0000 (UTC)
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354603 - head/sys/riscv/riscv
Message-ID:  <201911110135.xAB1ZoXR033323@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mhorne
Date: Mon Nov 11 01:35:50 2019
New Revision: 354603
URL: https://svnweb.freebsd.org/changeset/base/354603

Log:
  plic: fix PLIC_MAX_IRQS
  
  The maximum number of PLIC interrupts is defined in the PLIC spec[1]
  as 1024.
  
  [1] https://github.com/riscv/riscv-plic-spec/blob/master/riscv-plic.adoc
  
  MFC after:	1 week

Modified:
  head/sys/riscv/riscv/plic.c

Modified: head/sys/riscv/riscv/plic.c
==============================================================================
--- head/sys/riscv/riscv/plic.c	Mon Nov 11 00:21:05 2019	(r354602)
+++ head/sys/riscv/riscv/plic.c	Mon Nov 11 01:35:50 2019	(r354603)
@@ -52,7 +52,7 @@ __FBSDID("$FreeBSD$");
 
 #include "pic_if.h"
 
-#define	PLIC_MAX_IRQS		2048
+#define	PLIC_MAX_IRQS		1024
 #define	PLIC_PRIORITY(n)	(0x000000 + (n) * 0x4)
 #define	PLIC_ENABLE(n, h)	(0x002000 + (h) * 0x80 + 4 * ((n) / 32))
 #define	PLIC_THRESHOLD(h)	(0x200000 + (h) * 0x1000 + 0x0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911110135.xAB1ZoXR033323>