|
TacOS
0.2
|

Fonctions | |
| int | interrupt_set_routine (uint8_t interrupt_id, interrupt_handler_t routine, uint8_t privilege) |
| Ajoute une nouvelle interruption. Plus de détails... | |
| int | interrupt_disable (uint8_t interrupt_id) |
| Désactive une interruption. Plus de détails... | |
| void | make_trapgate_from_int (uint8_t interrupt_id) |
| Change le type d'une interruption en une trapgate. Plus de détails... | |
Variables | |
| paddr_t | interrupts_wrapper_array [INTERRUPT_NUM] |
| interrupt_handler_t | interrupts_handler_array [INTERRUPT_NUM] |
Copyright (C) 2010-2014 TacOS developers.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.
Description de ce que fait le fichier
| int interrupt_disable | ( | uint8_t | interrupt_id | ) |
| interrupt_id | Le numéro de l'interruption à désactiver. |

Ajoute une nouvelle interruption en mappant le numéro de l'interruption à la routine d'exécution.
| interrupt_id | Le numéro d'interruption. |
| routine | La routine qui sera exécutée lors de cette interruption. |
| privilege | Le niveau de privilège/priorité (0 ou 3). |


| void make_trapgate_from_int | ( | uint8_t | interrupt_id | ) |
| interrupt_id | Le numéro de l'interruption dont on veut changer le type pour en faire une trapgate. |


| paddr_t interrupts_wrapper_array[INTERRUPT_NUM] |
Le wrapper_array on le défini dans le interrupts_wrappers.S Le wrapper contient le code assembleur qui backup le contexte puis execute le handler.
1.8.7