Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2015 18:52:25 -0300
From:      =?UTF-8?Q?Mat=C3=ADas_Perret_Cantoni?= <perretcantonim@gmail.com>
To:        freebsd-drivers@freebsd.org
Subject:   general question on interrupts handling
Message-ID:  <CADLKG02i3%2BO0ZMo1vpcLLGFVaDEgrqzKBNSfrdL3zLwE4UMjtg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi!

I'm writing my first interrupt handling routine of a newbus driver and I'm
not sure what things should I take care of in my ISR and what things the
system will take care.

I'm working on a Xilinx Zynq-7000 platform. I'm generating a Shared
Peripheral Interrupt from the FPGA.

For example...
... do I have to disable interrupts upon entering my ISR and enable them
again before returning, o FreeBSD does it for me?
... do I have to clear the GIC interrupt status of my interrupt or the
systems does it automatically when my routine returns?

Please excuse me if this is too general or silly.  If you can point me any
documentation or sources to read, It'd be great.

Regards,
Matias.-



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLKG02i3%2BO0ZMo1vpcLLGFVaDEgrqzKBNSfrdL3zLwE4UMjtg>