bsps/riscv: interrupt number mismatch

Padmarao.Begari at microchip.com Padmarao.Begari at microchip.com
Tue Nov 22 09:56:08 UTC 2022


> On Mon, 2022-11-21 at 11:20 +0100, Sebastian Huber wrote:
> 
> On 21/11/2022 11:17, Padmarao.Begari at microchip.com wrote:
> > > To which number would you map the software and timer interrupts?
> > > 
> > The Software and Timer interrupts(numbers 0 & 1) are mapped by
> > the Machine cause register (mcause) and enabled by the CLINT but
> > not by
> > the PLIC.
> 
> Yes, this is the problem. We need an interrupt vector number for all
> interrupts (PLIC and CLINT).
> 

Fixed, by adding 2 with interrupt number in the bsp_fdt_map_intr()
function.
----------------------------------------------------------------
uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells)
{
  (void) icells;
  return intr[0] + 2;
}
----------------------------------------------------------------

Regards
Padmarao 
> --
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at embedded-brains.de
> phone: +49-89-18 94 741 - 16
> fax:   +49-89-18 94 741 - 08
> 
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas
> Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list