source: trunk/kernel/kern/do_interrupt.h @ 385

Last change on this file since 385 was 16, checked in by alain, 7 years ago

mprove the HAL for interrupt, exception, syscall handling.

File size: 2.1 KB
RevLine 
[16]1/*
2 * do_interrupt.h - Architecture independant interrupt handler definition.
3 *
4 * Author    Ghassan Almaless (2008,2009,2010,2011,2012)
5 *           Mohamed Lamine Karaoui (2015)
6 *           Alain Greiner (2016)
7 *
8 * Copyright (c) UPMC Sorbonne Universites
9 *
10 * This file is part of ALMOS-MKH.
11 *
12 * ALMOS-MKH is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; version 2.0 of the License.
15 *
16 * ALMOS-MKH is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 * General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with ALMOS-MKH; if not, write to the Free Software Foundation,
23 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 */
25
26#ifndef _DO_INTERRUPT_H_
27#define _DO_INTERRUPT_H_
28
29#include <hal_types.h>
30#include <thread.h>
31
32///////////////////////////////////////////////////////////////////////////////////////
33// This file defines the architecture independant interrupt handler.
34///////////////////////////////////////////////////////////////////////////////////////
35
36/**************************************************************************************
37 * This function is called by the hal_do_interrupt() function associated to a specific
38 * hardware architecture. It makes two things:
39 * - First, it access the local ICU controller to get pending interrupts for the
40 *   calling core, and execute the registered ISR. It handles up to three pending
41 *   interrupt at each call (one HWI, one WTI, and one PTI).
42 * - Second, it check the pending signals for the interrupted thread, and call
43 *   the registered signal handlers.
44 **************************************************************************************
45 * @ this      : pointer on the interrupted thread descriptor.
46 *************************************************************************************/
47void do_interrupt( thread_t * this );
48
49#endif  /* _DO_INTERRUPT_H_ */
Note: See TracBrowser for help on using the repository browser.